Lines Matching refs:rhs
64 …x_extended_type<Cmplex, Atype>::value, Cmplex>::type operator+(const Atype &lhs, const Cmplex &rhs)
66 return PetscReal(lhs) + rhs;
70 …x_extended_type<Cmplex, Atype>::value, Cmplex>::type operator+(const Cmplex &lhs, const Atype &rhs)
72 return lhs + PetscReal(rhs);
76 …x_extended_type<Cmplex, Atype>::value, Cmplex>::type operator-(const Atype &lhs, const Cmplex &rhs)
78 return PetscReal(lhs) - rhs;
82 …x_extended_type<Cmplex, Atype>::value, Cmplex>::type operator-(const Cmplex &lhs, const Atype &rhs)
84 return lhs - PetscReal(rhs);
88 …x_extended_type<Cmplex, Atype>::value, Cmplex>::type operator*(const Atype &lhs, const Cmplex &rhs)
90 return PetscReal(lhs) * rhs;
94 …x_extended_type<Cmplex, Atype>::value, Cmplex>::type operator*(const Cmplex &lhs, const Atype &rhs)
96 return lhs * PetscReal(rhs);
100 …x_extended_type<Cmplex, Atype>::value, Cmplex>::type operator/(const Atype &lhs, const Cmplex &rhs)
102 return PetscReal(lhs) / rhs;
106 …x_extended_type<Cmplex, Atype>::value, Cmplex>::type operator/(const Cmplex &lhs, const Atype &rhs)
108 return lhs / PetscReal(rhs);
112 …ex_extended_type<Cmplex, Atype>::value, bool>::type operator==(const Atype &lhs, const Cmplex &rhs)
114 return rhs.imag() == PetscReal(0) && rhs.real() == PetscReal(lhs);
118 …ex_extended_type<Cmplex, Atype>::value, bool>::type operator==(const Cmplex &lhs, const Atype &rhs)
120 return lhs.imag() == PetscReal(0) && lhs.real() == PetscReal(rhs);
124 …ex_extended_type<Cmplex, Atype>::value, bool>::type operator!=(const Atype &lhs, const Cmplex &rhs)
126 return rhs.imag() != PetscReal(0) || rhs.real() != PetscReal(lhs);
130 …ex_extended_type<Cmplex, Atype>::value, bool>::type operator!=(const Cmplex &lhs, const Atype &rhs)
132 return lhs.imag() != PetscReal(0) || lhs.real() != PetscReal(rhs);