(self, tp)
| 2232 | |
| 2233 | class TestLdexp: |
| 2234 | def _check_ldexp(self, tp): |
| 2235 | assert_almost_equal(ncu.ldexp(np.array(2., np.float32), |
| 2236 | np.array(3, tp)), 16.) |
| 2237 | assert_almost_equal(ncu.ldexp(np.array(2., np.float64), |
| 2238 | np.array(3, tp)), 16.) |
| 2239 | assert_almost_equal(ncu.ldexp(np.array(2., np.longdouble), |
| 2240 | np.array(3, tp)), 16.) |
| 2241 | |
| 2242 | def test_ldexp(self): |
| 2243 | # The default Python int type should work |
no test coverage detected