MCPcopy Create free account
hub / github.com/BoevaLab/FREEC / operator*

Method operator*

src/ap.cpp:67–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65{ ap::complex r = lhs; r -= rhs; return r; }
66
67const 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
70const ap::complex ap::operator*(const ap::complex& lhs, const double& rhs)
71{ return ap::complex(lhs.x*rhs, lhs.y*rhs); }

Callers

nothing calls this directly

Calls 1

complexClass · 0.85

Tested by

no test coverage detected