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