| 621 | } |
| 622 | |
| 623 | static void |
| 624 | nc_abs2( npy_intp n, npy_complex64 *x, npy_intp sb1, npy_float32 *r ) |
| 625 | { |
| 626 | if( sb1 == sizeof(npy_complex64) ) { // Aligned |
| 627 | for( npy_intp I = 0; I < n; I++ ) { |
| 628 | r[I] = x[I].real*x[I].real + x[I].imag*x[I].imag; |
| 629 | } |
| 630 | } |
| 631 | else { |
| 632 | sb1 /= sizeof(npy_complex64); |
| 633 | for( npy_intp I = 0; I < n; I++ ) { |
| 634 | r[I] = x[I*sb1].real*x[I*sb1].real + x[I*sb1].imag*x[I*sb1].imag; |
| 635 | } |
| 636 | } |
| 637 | } |
| 638 | |
| 639 | static void |
| 640 | nc_abs2( 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…