| 1403 | } |
| 1404 | |
| 1405 | static void |
| 1406 | nc_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 | |
| 1423 | static void |
| 1424 | nc_sin( 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…