Skip to contents

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

Usage

nv_sqrt(operand)

Arguments

operand

(arrayish)
Operand.

Value

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

See also

prim_sqrt() for the underlying primitive.

Examples

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