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

Function nc_cosh

numexpr3/complex_functions.hpp:1326–1342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1324}
1325
1326static void
1327nc_cosh( npy_intp n, npy_complex64 *x, npy_intp sb1, npy_complex64 *r)
1328{
1329 if( sb1 == sizeof(npy_complex64) ) { // Aligned
1330 for( npy_intp I = 0; I < n; I++ ) {
1331 r[I].real = cosf(x[I].imag)*coshf(x[I].real);
1332 r[I].imag = sinf(x[I].imag)*sinhf(x[I].real);
1333 }
1334 }
1335 else {
1336 sb1 /= sizeof(npy_complex64);
1337 for( npy_intp I = 0; I < n; I++ ) {
1338 r[I].real = cosf(x[I*sb1].imag)*coshf(x[I*sb1].real);
1339 r[I].imag = sinf(x[I*sb1].imag)*sinhf(x[I*sb1].real);
1340 }
1341 }
1342}
1343
1344static void
1345nc_cosh( 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…