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

Method tz

numpy/linalg/tests/test_linalg.py:1115–1118  ·  view source on GitHub ↗
(M)

Source from the content-addressed store, hash-verified

1113
1114 def test_power_is_zero(self, dt):
1115 def tz(M):
1116 mz = matrix_power(M, 0)
1117 assert_equal(mz, identity_like_generalized(M))
1118 assert_equal(mz.dtype, M.dtype)
1119
1120 for mat in self.rshft_all:
1121 tz(mat.astype(dt))

Callers

nothing calls this directly

Calls 4

matrix_powerFunction · 0.90
assert_equalFunction · 0.90
assert_almost_equalFunction · 0.90

Tested by

no test coverage detected