(self)
| 1371 | raise exc |
| 1372 | |
| 1373 | def test_log_strides(self): |
| 1374 | np.random.seed(42) |
| 1375 | strides = np.array([-4,-3,-2,-1,1,2,3,4]) |
| 1376 | sizes = np.arange(2,100) |
| 1377 | for ii in sizes: |
| 1378 | x_f64 = np.float64(np.random.uniform(low=0.01, high=100.0,size=ii)) |
| 1379 | x_special = x_f64.copy() |
| 1380 | x_special[3:-1:4] = 1.0 |
| 1381 | y_true = np.log(x_f64) |
| 1382 | y_special = np.log(x_special) |
| 1383 | for jj in strides: |
| 1384 | assert_array_almost_equal_nulp(np.log(x_f64[::jj]), y_true[::jj], nulp=2) |
| 1385 | assert_array_almost_equal_nulp(np.log(x_special[::jj]), y_special[::jj], nulp=2) |
| 1386 | |
| 1387 | class TestExp: |
| 1388 | def test_exp_values(self): |
nothing calls this directly
no test coverage detected