Test norm function with wrong size
(self)
| 52 | |
| 53 | # Test (type IN_ARRAY3[ANY][ANY][ANY]) typemap |
| 54 | def testNormWrongSize(self): |
| 55 | "Test norm function with wrong size" |
| 56 | print(self.typeStr, "... ", file=sys.stderr) |
| 57 | norm = SuperTensor.__dict__[self.typeStr + "Norm"] |
| 58 | supertensor = np.arange(3 * 2 * 2, dtype=self.typeCode).reshape((3, 2, 2)) |
| 59 | self.assertRaises(TypeError, norm, supertensor) |
| 60 | |
| 61 | # Test (type IN_ARRAY3[ANY][ANY][ANY]) typemap |
| 62 | def testNormNonContainer(self): |