Round every element up toward positive infinity.
Numeric.math.ceil(value)Applies the ceiling across nested numeric inputs.
- Parameters:
value: Scalar, vector, or matrix input values
- Returns: Ceiled values matching the input nesting shape
- NumPy: Equivalent to
np.ceil.
import Numeric from '@neabyte/numerix'
const value = Numeric.math.ceil(1.1)
console.log(value)
// 2import Numeric from '@neabyte/numerix'
const values = Numeric.math.ceil([1.1, -1.9])
console.log(values)
// [2,-1]import Numeric from '@neabyte/numerix'
const values = Numeric.math.ceil([[1.1, 2.9], [3.2, -0.2]])
console.log(values)
// [[2,3],[4,0]]import Numeric from '@neabyte/numerix'
const value = Numeric.math.ceil(5)
console.log(value)
// 5