Test norm function with wrong dimensions
(self)
| 45 | |
| 46 | # Test (type IN_ARRAY3[ANY][ANY][ANY]) typemap |
| 47 | def testNormWrongDim(self): |
| 48 | "Test norm function with wrong dimensions" |
| 49 | print(self.typeStr, "... ", end=' ', file=sys.stderr) |
| 50 | norm = Tensor.__dict__[self.typeStr + "Norm"] |
| 51 | tensor = [[0, 1, 2, 3], |
| 52 | [3, 2, 1, 0]] |
| 53 | self.assertRaises(TypeError, norm, tensor) |
| 54 | |
| 55 | # Test (type IN_ARRAY3[ANY][ANY][ANY]) typemap |
| 56 | def testNormWrongSize(self): |