MCPcopy Create free account
hub / github.com/NGSolve/ngsolve / ExtractRealImag

Function ExtractRealImag

solve/python_solve.cpp:323–326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321static void ExtractRealImag(const TSCAL val, int i, float &real, float &imag);
322
323template<> void ExtractRealImag(const SIMD<Complex> val, int i, float &real, float &imag) {
324 real = val.real()[i];
325 imag = val.imag()[i];
326}
327
328template<> void ExtractRealImag(const Complex val, int i, float &real, float &imag) {
329 real = val.real();

Callers 1

GetValuesFunction · 0.85

Calls 2

realMethod · 0.45
imagMethod · 0.45

Tested by

no test coverage detected