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

Function nc_conj

numexpr3/complex_functions.hpp:289–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

287}
288
289static void
290nc_conj(npy_intp n,npy_complex64 *a, npy_intp sb1, npy_complex64 *r)
291{
292 if( sb1 == sizeof(npy_complex64) ) { // Aligned
293 for( npy_intp I = 0; I < n; I++ ) {
294 r[I].real = a[I].real;
295 r[I].imag = -a[I].imag;
296 }
297 }
298 else {
299 sb1 /= sizeof(npy_complex64);
300 for( npy_intp I = 0; I < n; I++ ) {
301 r[I].real = a[I*sb1].real;
302 r[I].imag = -a[I*sb1].imag;
303 }
304 }
305}
306
307static void
308nc_conj(npy_intp n,npy_complex128 *a, npy_intp sb1, npy_complex128 *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…