MCPcopy Create free account
hub / github.com/numpy/numpy / mult

Function mult

numpy/linalg/umath_linalg.cpp:1053–1062  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1051
1052template<typename typ>
1053static inline typ
1054mult(typ op1, typ op2)
1055{
1056 typ rv;
1057
1058 RE(rv) = RE(op1)*RE(op2) - IM(op1)*IM(op2);
1059 IM(rv) = RE(op1)*IM(op2) + IM(op1)*RE(op2);
1060
1061 return rv;
1062}
1063
1064
1065template<typename typ, typename basetyp>

Callers 4

test_subclassesMethod · 0.85
det_from_slogdetFunction · 0.85

Calls

no outgoing calls

Tested by 2

test_subclassesMethod · 0.68