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

Method testLUSplit

tools/swig/test/testMatrix.py:231–237  ·  view source on GitHub ↗

Test luSplit function

(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

allMethod · 0.45

Tested by

no test coverage detected