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

Function nc_sqrt

numexpr3/complex_functions.hpp:558–572  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

556}
557
558static void
559nc_sqrt( npy_intp n, npy_complex64 *x, npy_intp sb1, npy_complex64 *r)
560{
561 if( sb1 == sizeof(npy_complex64) ) { // Aligned
562 for( npy_intp I = 0; I < n; I++ ) {
563 _inline_sqrt( x[I], r[I] );
564 }
565 }
566 else {
567 sb1 /= sizeof(npy_complex64);
568 for( npy_intp I = 0; I < n; I++ ) {
569 _inline_sqrt( x[I*sb1], r[I] );
570 }
571 }
572}
573
574static void
575nc_sqrt( npy_intp n, npy_complex128 *x, npy_intp sb1, npy_complex128 *r)

Callers

nothing calls this directly

Calls 1

_inline_sqrtFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…