Skip to contents

Element-wise floor (round toward negative infinity). You can also use floor().

Usage

nv_floor(operand)

Arguments

operand

(tensorish)
Operand.

Value

tensorish
Has the same shape and data type as the input.

See also

nvl_floor() for the underlying primitive.

Examples

jit_eval({
  x <- nv_tensor(c(1.2, 2.7, -1.5))
  floor(x)
})
#> AnvilTensor
#>   1
#>   2
#>  -2
#> [ CPUf32{3} ]