Test norm function with non-container
(self)
| 63 | |
| 64 | # Test (type IN_ARRAY3[ANY][ANY][ANY]) typemap |
| 65 | def testNormNonContainer(self): |
| 66 | "Test norm function with non-container" |
| 67 | print(self.typeStr, "... ", end=' ', file=sys.stderr) |
| 68 | norm = Tensor.__dict__[self.typeStr + "Norm"] |
| 69 | self.assertRaises(TypeError, norm, None) |
| 70 | |
| 71 | # Test (type* IN_ARRAY3, int DIM1, int DIM2, int DIM3) typemap |
| 72 | def testMax(self): |