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

Function nc_log1p

numexpr3/complex_functions.hpp:701–717  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

699}
700
701static void
702nc_log1p( npy_intp n, npy_complex64 *x, npy_intp sb1, npy_complex64 *r)
703{
704 if( sb1 == sizeof(npy_complex64) ) { // Aligned
705 for( npy_intp I = 0; I < n; I++ ) {
706 r[I].imag = atan2f(x[I].imag, x[I].real + 1.0f);
707 r[I].real = logf( hypotf(x[I].real + 1.0f,x[I].imag) );
708 }
709 }
710 else {
711 sb1 /= sizeof(npy_complex64);
712 for( npy_intp I = 0; I < n; I++ ) {
713 r[I].imag = atan2f(x[I*sb1].imag, x[I*sb1].real + 1.0f);
714 r[I].real = logf( hypotf(x[I*sb1].real + 1.0f,x[I*sb1].imag) );
715 }
716 }
717}
718
719static void
720nc_log1p( npy_intp n, npy_complex128 *x, 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…