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

Function nc_sin

numexpr3/complex_functions.hpp:1405–1421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1403}
1404
1405static void
1406nc_sin( npy_intp n, npy_complex64 *x, npy_intp sb1, npy_complex64 *r)
1407{
1408 if( sb1 == sizeof(npy_complex64) ) { // Aligned
1409 for( npy_intp I = 0; I < n; I++ ) {
1410 r[I].real = sinf(x[I].real)*coshf(x[I].imag);
1411 r[I].imag = cosf(x[I].real)*sinhf(x[I].imag);
1412 }
1413 }
1414 else {
1415 sb1 /= sizeof(npy_complex64);
1416 for( npy_intp I = 0; I < n; I++ ) {
1417 r[I].real = sinf(x[I*sb1].real)*coshf(x[I*sb1].imag);
1418 r[I].imag = cosf(x[I*sb1].real)*sinhf(x[I*sb1].imag);
1419 }
1420 }
1421}
1422
1423static void
1424nc_sin( 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…