rray_hypot()
computes the elementwise square root of the sum
of squares of x
and y
.
rray_hypot(x, y)
x, y | A vector, matrix, array or rray. |
---|
An object of the common type of x
and y
containing the square root
of the sum of squares.
#> [,1] [,2] [,3] #> [1,] 2.828427 4.472136 6.324555 #> [2,] 4.472136 5.656854 7.211103 #> [3,] 6.324555 7.211103 8.485281