Skip to contents

Raises lhs to the power of rhs element-wise.

Usage

nvl_pow(lhs, rhs)

Arguments

lhs, rhs

(tensorish)
Tensorish values of data type integer, unsigned integer, or floating-point. Must have the same shape.

Value

tensorish
Has the same shape and data type as the inputs. It is ambiguous if both inputs are ambiguous.

StableHLO

Lowers to stablehlo::hlo_power().

See also

Examples

jit_eval({
  x <- nv_tensor(c(2, 3, 4))
  y <- nv_tensor(c(3, 2, 1))
  nvl_pow(x, y)
})
#> AnvilTensor
#>  8
#>  9
#>  4
#> [ CPUf32{3} ]