(nx)
| 182 | |
| 183 | |
| 184 | def test_unif_backend(nx): |
| 185 | n = 100 |
| 186 | |
| 187 | for tp in nx.__type_list__: |
| 188 | print(nx.dtype_device(tp)) |
| 189 | |
| 190 | u = ot.unif(n, type_as=tp) |
| 191 | |
| 192 | np.testing.assert_allclose(1, np.sum(nx.to_numpy(u)), atol=1e-6) |
| 193 | |
| 194 | |
| 195 | def test_dist(): |
nothing calls this directly
no test coverage detected