| 784 | } |
| 785 | |
| 786 | static void |
| 787 | nc_expm1( npy_intp n, npy_complex64 *x, npy_intp sb1, npy_complex64 *r) |
| 788 | { |
| 789 | npy_float32 a; |
| 790 | if( sb1 == sizeof(npy_complex64) ) { // Aligned |
| 791 | for( npy_intp I = 0; I < n; I++ ) { |
| 792 | a = expf(x[I].real); |
| 793 | r[I].real = a*cosf(x[I].imag) - 1.0f; |
| 794 | r[I].imag = a*sinf(x[I].imag); |
| 795 | } |
| 796 | } |
| 797 | else { |
| 798 | sb1 /= sizeof(npy_complex64); |
| 799 | for( npy_intp I = 0; I < n; I++ ) { |
| 800 | a = expf(x[I*sb1].real); |
| 801 | r[I].real = a*cosf(x[I*sb1].imag) - 1.0f; |
| 802 | r[I].imag = a*sinf(x[I*sb1].imag); |
| 803 | } |
| 804 | } |
| 805 | } |
| 806 | |
| 807 | static void |
| 808 | nc_expm1( 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…