pymc.math.floor#

pymc.math.floor = Elemwise(scalar_op=floor,inplace_pattern=<frozendict {}>)[source]#

floor of a

Computes element-wise floor (largest integer less than or equal to x) of a tensor.

Parameters:
aTensorLike

Input tensor

Returns:
TensorVariable

Output tensor with the floor of each element in a

Examples

>>> import pytensor
>>> import pytensor.tensor as pt
>>> x = pt.vector("x")
>>> f = pytensor.function([x], pt.floor(x))
>>> f([1.5, 2.0, -3.7])
array([ 1.,  2., -4.])