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

Function nc_expm1

numexpr3/complex_functions.hpp:786–805  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

784}
785
786static void
787nc_expm1( npy_intp n, npy_complex64 *x, npy_intp sb1, npy_complex64 *r)
788{
789 npy_float32 a;
790 if( sb1 == sizeof(npy_complex64) ) { // Aligned
791 for( npy_intp I = 0; I < n; I++ ) {
792 a = expf(x[I].real);
793 r[I].real = a*cosf(x[I].imag) - 1.0f;
794 r[I].imag = a*sinf(x[I].imag);
795 }
796 }
797 else {
798 sb1 /= sizeof(npy_complex64);
799 for( npy_intp I = 0; I < n; I++ ) {
800 a = expf(x[I*sb1].real);
801 r[I].real = a*cosf(x[I*sb1].imag) - 1.0f;
802 r[I].imag = a*sinf(x[I*sb1].imag);
803 }
804 }
805}
806
807static void
808nc_expm1( 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…