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

Method test_trace

numpy/_core/tests/test_numeric.py:349–351  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

347 assert_equal(out.dtype, tgt.dtype)
348
349 def test_trace(self):
350 c = [[1, 2], [3, 4], [5, 6]]
351 assert_equal(np.trace(c), 5)
352
353 def test_transpose(self):
354 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