MCPcopy Create free account
hub / github.com/numpy/numpy / test_operate_4d_array

Method test_operate_4d_array

numpy/lib/tests/test_index_tricks.py:463–467  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

461 )
462
463 def test_operate_4d_array(self):
464 a = np.zeros((3, 3, 3, 3), int)
465 fill_diagonal(a, 4)
466 i = np.array([0, 1, 2])
467 assert_equal(np.where(a != 0), (i, i, i, i))
468
469 def test_low_dim_handling(self):
470 # raise error with low dimensionality

Callers

nothing calls this directly

Calls 2

fill_diagonalFunction · 0.90
assert_equalFunction · 0.90

Tested by

no test coverage detected