Test ceil function
(self)
| 218 | |
| 219 | # Test (int DIM1, int DIM2, int DIM3, type* INPLACE_ARRAY3) typemap |
| 220 | def testCeil(self): |
| 221 | "Test ceil function" |
| 222 | print(self.typeStr, "... ", end=' ', file=sys.stderr) |
| 223 | ceil = Tensor.__dict__[self.typeStr + "Ceil"] |
| 224 | tensor = np.array([[[9, 8], [7, 6]], |
| 225 | [[5, 4], [3, 2]]], self.typeCode) |
| 226 | ceil(tensor, 5) |
| 227 | np.testing.assert_array_equal(tensor, np.array([[[5, 5], [5, 5]], |
| 228 | [[5, 4], [3, 2]]])) |
| 229 | |
| 230 | # Test (int DIM1, int DIM2, int DIM3, type* INPLACE_ARRAY3) typemap |
| 231 | def testCeilWrongType(self): |
nothing calls this directly
no test coverage detected