| 699 | } |
| 700 | |
| 701 | static void |
| 702 | nc_log1p( npy_intp n, npy_complex64 *x, npy_intp sb1, npy_complex64 *r) |
| 703 | { |
| 704 | if( sb1 == sizeof(npy_complex64) ) { // Aligned |
| 705 | for( npy_intp I = 0; I < n; I++ ) { |
| 706 | r[I].imag = atan2f(x[I].imag, x[I].real + 1.0f); |
| 707 | r[I].real = logf( hypotf(x[I].real + 1.0f,x[I].imag) ); |
| 708 | } |
| 709 | } |
| 710 | else { |
| 711 | sb1 /= sizeof(npy_complex64); |
| 712 | for( npy_intp I = 0; I < n; I++ ) { |
| 713 | r[I].imag = atan2f(x[I*sb1].imag, x[I*sb1].real + 1.0f); |
| 714 | r[I].real = logf( hypotf(x[I*sb1].real + 1.0f,x[I*sb1].imag) ); |
| 715 | } |
| 716 | } |
| 717 | } |
| 718 | |
| 719 | static void |
| 720 | nc_log1p( 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…