Lines Matching defs:operator
26 complex_t operator + (complex_t y) { return complex_t(re + y.re, im + y.im); }
27 complex_t operator - (complex_t y) { return complex_t(re - y.re, im - y.im); }
28 complex_t operator - () { return complex_t(-re, -im); }
29 complex_t operator * (complex_t y) { return complex_t(re * y.re - im * y.im, im * y.re + re * y.im); }
31 complex_t operator / (complex_t y)
49 operator bool () { return re || im; }
51 int operator == (complex_t y) { return re == y.re && im == y.im; }
52 int operator != (complex_t y) { return re != y.re || im != y.im; }
58 inline complex_t operator * (real_t x, complex_t y) { return complex_t(x) * y; }
59 inline complex_t operator * (complex_t x, real_t y) { return x * complex_t(y); }
60 inline complex_t operator / (complex_t x, real_t y) { return x / complex_t(y); }