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

Function nc_div

numexpr3/complex_functions.hpp:473–488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

471}
472
473static void
474nc_div( npy_intp n, npy_complex64 *a, npy_intp sb1, npy_complex64 *b, npy_intp sb2, npy_complex64 *r)
475{
476 if( sb1 == sizeof(npy_complex64) && sb2 == sizeof(npy_complex64) ) { // Aligned
477 for( npy_intp I = 0; I < n; I++ ) {
478 _inline_div( a[I], b[I], r[I] );
479 }
480 }
481 else {
482 sb2 /= sizeof(npy_complex64);
483 sb1 /= sizeof(npy_complex64);
484 for( npy_intp I = 0; I < n; I++ ) {
485 _inline_div( a[I*sb1], b[I*sb2], r[I] );
486 }
487 }
488}
489
490static void
491nc_div( 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_divFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…