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

Function nc_sub

numexpr3/complex_functions.hpp:209–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207}
208
209static void
210nc_sub( npy_intp n, npy_complex64 *a, npy_intp sb1, npy_complex64 *b, npy_intp sb2, npy_complex64 *r )
211{
212 if( sb1 == sizeof(npy_complex64) && sb2 == sizeof(npy_complex64) ) { // Aligned
213 for( npy_intp I = 0; I < n; I++ ) {
214 _inline_sub( a[I], b[I], r[I] );
215 }
216 }
217 else {
218 sb2 /= sizeof(npy_complex64);
219 sb1 /= sizeof(npy_complex64);
220 for( npy_intp I = 0; I < n; I++ ) {
221 _inline_sub( a[I*sb1], b[I*sb2], r[I] );
222 }
223 }
224}
225
226static void
227nc_sub( npy_intp n,npy_complex128 *a, npy_intp sb1, npy_complex128 *b, npy_intp sb2, npy_complex128 *r)

Callers

nothing calls this directly

Calls 1

_inline_subFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…