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

Method testLUSplit

tools/swig/test/testTensor.py:257–266  ·  view source on GitHub ↗

Test luSplit function

(self)

Source from the content-addressed store, hash-verified

255
256 # Test (type ARGOUT_ARRAY3[ANY][ANY][ANY]) typemap
257 def testLUSplit(self):
258 "Test luSplit function"
259 print(self.typeStr, "... ", end=' ', file=sys.stderr)
260 luSplit = Tensor.__dict__[self.typeStr + "LUSplit"]
261 lower, upper = luSplit([[[1, 1], [1, 1]],
262 [[1, 1], [1, 1]]])
263 self.assertEqual((lower == [[[1, 1], [1, 0]],
264 [[1, 0], [0, 0]]]).all(), True)
265 self.assertEqual((upper == [[[0, 0], [0, 1]],
266 [[0, 1], [1, 1]]]).all(), True)
267
268######################################################################
269

Callers

nothing calls this directly

Calls 2

printFunction · 0.85
allMethod · 0.45

Tested by

no test coverage detected