| 589 | |
| 590 | |
| 591 | static void |
| 592 | nc_abs( npy_intp n, npy_complex64 *x, npy_intp sb1, npy_float32 *r ) |
| 593 | { |
| 594 | if( sb1 == sizeof(npy_complex64) ) { // Aligned |
| 595 | for( npy_intp I = 0; I < n; I++ ) { |
| 596 | r[I] = sqrtf( x[I].real*x[I].real + x[I].imag*x[I].imag); |
| 597 | } |
| 598 | } |
| 599 | else { |
| 600 | sb1 /= sizeof(npy_complex64); |
| 601 | for( npy_intp I = 0; I < n; I++ ) { |
| 602 | r[I] = sqrtf( x[I*sb1].real*x[I*sb1].real + x[I*sb1].imag*x[I*sb1].imag); |
| 603 | } |
| 604 | } |
| 605 | } |
| 606 | |
| 607 | static void |
| 608 | nc_abs( npy_intp n, npy_complex128 *x, npy_intp sb1, npy_float64 *r ) |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…