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

Function nc_sinh

numexpr3/complex_functions.hpp:1441–1457  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1439}
1440
1441static void
1442nc_sinh( npy_intp n, npy_complex64 *x, npy_intp sb1, npy_complex64 *r)
1443{
1444 if( sb1 == sizeof(npy_complex64) ) { // Aligned
1445 for( npy_intp I = 0; I < n; I++ ) {
1446 r[I].real = cosf(x[I].imag)*sinhf(x[I].real);
1447 r[I].imag = sinf(x[I].imag)*coshf(x[I].real);
1448 }
1449 }
1450 else {
1451 sb1 /= sizeof(npy_complex64);
1452 for( npy_intp I = 0; I < n; I++ ) {
1453 r[I].real = cosf(x[I].imag)*sinhf(x[I].real);
1454 r[I].imag = sinf(x[I].imag)*coshf(x[I].real);
1455 }
1456 }
1457}
1458
1459static void
1460nc_sinh( 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…