| 270 | |
| 271 | |
| 272 | inline complex operator/(const complex& c1, const complex& c2) |
| 273 | { |
| 274 | scalar sqrC2 = magSqr(c2); |
| 275 | |
| 276 | return complex |
| 277 | ( |
| 278 | (c1.re*c2.re + c1.im*c2.im)/sqrC2, |
| 279 | (c1.im*c2.re - c1.re*c2.im)/sqrC2 |
| 280 | ); |
| 281 | } |
| 282 | |
| 283 | |
| 284 | inline complex operator*(const scalar s, const complex& c) |