Test luSplit function
(self)
| 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 |