Test norm function with wrong dimensions
(self)
| 44 | |
| 45 | # Test (type IN_ARRAY3[ANY][ANY][ANY]) typemap |
| 46 | def testNormWrongDim(self): |
| 47 | "Test norm function with wrong dimensions" |
| 48 | print(self.typeStr, "... ", file=sys.stderr) |
| 49 | norm = SuperTensor.__dict__[self.typeStr + "Norm"] |
| 50 | supertensor = np.arange(2 * 2 * 2, dtype=self.typeCode).reshape((2, 2, 2)) |
| 51 | self.assertRaises(TypeError, norm, supertensor) |
| 52 | |
| 53 | # Test (type IN_ARRAY3[ANY][ANY][ANY]) typemap |
| 54 | def testNormWrongSize(self): |