Skip to contents

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

Usage

nv_ceiling(x)

Arguments

x

(arrayish)
Input array.

Value

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

See also

prim_ceil() for the underlying primitive.

Examples

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