()
| 2358 | |
| 2359 | |
| 2360 | def test_trace(): |
| 2361 | # Here we only test if selected axes are compatible |
| 2362 | # with Array API (last two). Core implementation |
| 2363 | # of `trace` is tested in `test_multiarray.py`. |
| 2364 | x = np.arange(60).reshape((3, 4, 5)) |
| 2365 | actual = np.linalg.trace(x) |
| 2366 | expected = np.array([36, 116, 196]) |
| 2367 | |
| 2368 | assert_equal(actual, expected) |
| 2369 | |
| 2370 | |
| 2371 | def test_cross(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…