MCPcopy
hub / github.com/numpy/numpy / testLUSplit

Method testLUSplit

tools/swig/test/testTensor.py:258–267  ·  view source on GitHub ↗

Test luSplit function

(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

allMethod · 0.45

Tested by

no test coverage detected