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