Skip to contents

Element-wise floor.

Usage

prim_floor(operand)

Arguments

operand

(arrayish)
Arrayish value of data type floating-point.

Value

arrayish
Has the same shape and data type as the input. It is ambiguous if the input is ambiguous.

Implemented Rules

  • stablehlo

  • quickr

  • reverse

StableHLO

Lowers to stablehlo::hlo_floor().

See also

Examples

x <- nv_array(c(1.2, 2.7, -1.5))
prim_floor(x)
#> AnvlArray
#>   1
#>   2
#>  -2
#> [ CPUf32{3} ]