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

Method testDet

tools/swig/test/testMatrix.py:24–29  ·  view source on GitHub ↗

Test det function

(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

printFunction · 0.85
detFunction · 0.50

Tested by

no test coverage detected