| 1324 | } |
| 1325 | |
| 1326 | static void |
| 1327 | nc_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 | |
| 1344 | static void |
| 1345 | nc_cosh( npy_intp n, npy_complex128 *x, npy_intp sb1, npy_complex128 *r) |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…