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

Function fconj

numexpr3/complex_functions.hpp:331–345  ·  view source on GitHub ↗

Needed for allowing the internal casting in numexpr machinery for conjugate operations RAM: What this comment means is if the user calls conj(x) on a npy_float32 or npy_float64 do a null-op so the interpreter doesn't break.

Source from the content-addressed store, hash-verified

329// RAM: What this comment means is if the user calls conj(x) on a npy_float32 or
330// npy_float64 do a null-op so the interpreter doesn't break.
331static void
332fconj( npy_intp n, npy_float32 *x, npy_intp sb1, npy_float32 *r )
333{
334 if( sb1 == sizeof(npy_float32) ) { // Aligned
335 for( npy_intp I = 0; I < n; I++ ) {
336 r[I] = x[I];
337 }
338 }
339 else {
340 sb1 /= sizeof(npy_float32);
341 for( npy_intp I = 0; I < n; I++ ) {
342 r[I] = x[I*sb1];
343 }
344 }
345}
346
347static void
348fconj( npy_intp n, npy_float64 *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…