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