MCPcopy Index your code
hub / github.com/numpy/numpy / test_operate_4d_array

Method test_operate_4d_array

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

Source from the content-addressed store, hash-verified

483 )
484
485 def test_operate_4d_array(self):
486 a = np.zeros((3, 3, 3, 3), int)
487 fill_diagonal(a, 4)
488 i = np.array([0, 1, 2])
489 assert_equal(np.where(a != 0), (i, i, i, i))
490
491 def test_low_dim_handling(self):
492 # 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