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

Method testDet

tools/swig/test/testMatrix.py:25–30  ·  view source on GitHub ↗

Test det function

(self)

Source from the content-addressed store, hash-verified

23
24 # Test (type IN_ARRAY2[ANY][ANY]) typemap
25 def testDet(self):
26 "Test det function"
27 print(self.typeStr, "... ", end=' ', file=sys.stderr)
28 det = Matrix.__dict__[self.typeStr + "Det"]
29 matrix = [[8, 7], [6, 9]]
30 self.assertEqual(det(matrix), 30)
31
32 # Test (type IN_ARRAY2[ANY][ANY]) typemap
33 def testDetBadList(self):

Callers

nothing calls this directly

Calls 1

detFunction · 0.85

Tested by

no test coverage detected