| 65 | { ap::complex r = lhs; r -= rhs; return r; } |
| 66 | |
| 67 | const ap::complex ap::operator*(const ap::complex& lhs, const ap::complex& rhs) |
| 68 | { return ap::complex(lhs.x*rhs.x - lhs.y*rhs.y, lhs.x*rhs.y + lhs.y*rhs.x); } |
| 69 | |
| 70 | const ap::complex ap::operator*(const ap::complex& lhs, const double& rhs) |
| 71 | { return ap::complex(lhs.x*rhs, lhs.y*rhs); } |