Skip to contents

Element-wise square root. You can also use sqrt().

Usage

nv_sqrt(operand)

Arguments

operand

(tensorish)
Operand.

Value

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

See also

nvl_sqrt() for the underlying primitive.

Examples

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