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

Function mk_complex_array_from_real

numpy/linalg/umath_linalg.cpp:2166–2174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2164
2165template<typename complextyp, typename typ>
2166static inline void
2167mk_complex_array_from_real(complextyp *c, const typ *re, size_t n)
2168{
2169 size_t iter;
2170 for (iter = 0; iter < n; ++iter) {
2171 c[iter].r = re[iter];
2172 c[iter].i = numeric_limits<typ>::zero;
2173 }
2174}
2175
2176template<typename complextyp, typename typ>
2177static inline void

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected