MCPcopy Create free account
hub / github.com/numpy/numpy / testCeil

Method testCeil

tools/swig/test/testMatrix.py:197–203  ·  view source on GitHub ↗

Test ceil function

(self)

Source from the content-addressed store, hash-verified

195
196 # Test (int DIM1, int DIM2, type* INPLACE_ARRAY2) typemap
197 def testCeil(self):
198 "Test ceil function"
199 print(self.typeStr, "... ", end=' ', file=sys.stderr)
200 ceil = Matrix.__dict__[self.typeStr + "Ceil"]
201 matrix = np.array([[1, 2], [3, 4]], self.typeCode)
202 ceil(matrix, 3)
203 np.testing.assert_array_equal(matrix, np.array([[1, 2], [3, 3]]))
204
205 # Test (int DIM1, int DIM2, type* INPLACE_ARRAY2) typemap
206 def testCeilWrongDim(self):

Callers

nothing calls this directly

Calls 3

printFunction · 0.85
ceilFunction · 0.85
assert_array_equalMethod · 0.80

Tested by

no test coverage detected