pymc.math.ceil#
- pymc.math.ceil = Elemwise(scalar_op=ceil,inplace_pattern=<frozendict {}>)[source]#
ceiling of a
Computes element-wise ceiling (smallest integer greater than or equal to x) of a tensor.
- Parameters:
- a
TensorLike
Input tensor
- a
- Returns:
TensorVariable
Output tensor with the ceiling of each element in a
Examples
>>> import pytensor >>> import pytensor.tensor as pt >>> x = pt.vector("x") >>> f = pytensor.function([x], pt.ceil(x)) >>> f([1.5, 2.0, -3.7]) array([ 2., 2., -3.])