()
| 487 | |
| 488 | |
| 489 | def test_get_coordinate_circle(): |
| 490 | rng = np.random.RandomState(42) |
| 491 | u = rng.rand(1, 100) |
| 492 | x1, y1 = np.cos(u * (2 * np.pi)), np.sin(u * (2 * np.pi)) |
| 493 | x = np.concatenate([x1, y1]).T |
| 494 | x_p = ot.utils.get_coordinate_circle(x) |
| 495 | |
| 496 | np.testing.assert_allclose(u[0], x_p) |
| 497 | |
| 498 | |
| 499 | def test_LazyTensor(nx): |
nothing calls this directly
no test coverage detected