Skip to contents

Element-wise ceiling (round toward positive infinity). You can also use ceiling().

Usage

nv_ceil(operand)

Arguments

operand

(tensorish)
Operand.

Value

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

See also

nvl_ceil() for the underlying primitive.

Examples

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