rray_hypot: Compute the square root of the sum of squares

Description Usage Arguments Value Examples

View source: R/hypot.R

Description

rray_hypot() computes the elementwise square root of the sum of squares of x and y.

Usage

1
rray_hypot(x, y)

Arguments

x, y

A vector, matrix, array or rray.

Value

An object of the common type of x and y containing the square root of the sum of squares.

Examples

1
2
3
4
x <- matrix(c(2, 4, 6))

# With broadcasting
rray_hypot(x, t(x))

DavisVaughan/rray documentation built on Feb. 5, 2020, 10:06 p.m.