Like real + 1j * imag, but behaves as expected when imag contains non-finite values
(real, imag)
| 35 | |
| 36 | |
| 37 | def _make_complex(real, imag): |
| 38 | """ |
| 39 | Like real + 1j * imag, but behaves as expected when imag contains non-finite |
| 40 | values |
| 41 | """ |
| 42 | ret = np.zeros(np.broadcast(real, imag).shape, np.complex_) |
| 43 | ret.real = real |
| 44 | ret.imag = imag |
| 45 | return ret |
| 46 | |
| 47 | |
| 48 | class TestRot90: |
nothing calls this directly
no outgoing calls
no test coverage detected