Skip to contents

Element-wise ceiling.

Usage

prim_ceil(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_ceil().

See also

Examples

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