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

Method testLUSplit

tools/swig/test/testMatrix.py:230–236  ·  view source on GitHub ↗

Test luSplit function

(self)

Source from the content-addressed store, hash-verified

228
229 # Test (type ARGOUT_ARRAY2[ANY][ANY]) typemap
230 def testLUSplit(self):
231 "Test luSplit function"
232 print(self.typeStr, "... ", end=' ', file=sys.stderr)
233 luSplit = Matrix.__dict__[self.typeStr + "LUSplit"]
234 lower, upper = luSplit([[1, 2, 3], [4, 5, 6], [7, 8, 9]])
235 self.assertEqual((lower == [[1, 0, 0], [4, 5, 0], [7, 8, 9]]).all(), True)
236 self.assertEqual((upper == [[0, 2, 3], [0, 0, 6], [0, 0, 0]]).all(), True)
237
238######################################################################
239

Callers

nothing calls this directly

Calls 2

printFunction · 0.85
allMethod · 0.45

Tested by

no test coverage detected