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

Method test_trace

numpy/core/tests/test_numeric.py:277–279  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

275 assert_equal(out, tgt)
276
277 def test_trace(self):
278 c = [[1, 2], [3, 4], [5, 6]]
279 assert_equal(np.trace(c), 5)
280
281 def test_transpose(self):
282 arr = [[1, 2], [3, 4], [5, 6]]

Callers

nothing calls this directly

Calls 2

assert_equalFunction · 0.90
traceMethod · 0.80

Tested by

no test coverage detected