MCPcopy Create free account
hub / github.com/pydata/numexpr / nc_imag

Function nc_imag

numexpr3/complex_functions.hpp:77–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77static void
78nc_imag( npy_intp n, npy_complex64 *x, npy_intp sb1, npy_float32 *r)
79{
80 if( sb1 == sizeof(npy_complex64) ) { // Aligned
81 for( npy_intp I = 0; I < n; I++ ) {
82 r[I] = x[I].imag;
83 }
84 }
85 else {
86 sb1 /= sizeof(npy_complex64);
87 for( npy_intp I = 0; I < n; I++ ) {
88 r[I] = x[I*sb1].imag;
89 }
90 }
91}
92
93static void
94nc_imag( npy_intp n, npy_complex128 *x, npy_intp sb1, npy_float64 *r)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…