MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / operator/

Function operator/

src/OpenFOAM/primitives/complex/complexI.H:272–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270
271
272inline 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
284inline complex operator*(const scalar s, const complex& c)

Callers

nothing calls this directly

Calls 2

complexClass · 0.85
magSqrFunction · 0.70

Tested by

no test coverage detected