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

Method test_identity

numpy/ma/tests/test_core.py:4652–4655  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4650 assert_(output[()] is masked)
4651
4652 def test_identity(self):
4653 a = identity(5)
4654 assert_(isinstance(a, MaskedArray))
4655 assert_equal(a, np.identity(5))
4656
4657 def test_power(self):
4658 x = -1.1

Callers

nothing calls this directly

Calls 4

identityFunction · 0.90
assert_equalFunction · 0.90
assert_Function · 0.85
identityMethod · 0.80

Tested by

no test coverage detected