Compute Frobenius norm of matrix-like objects x and y

compute_proj_dist(x, y)

Arguments

x, y

'matrix' like objects that have tcrossprod methods

Value

A numeric vector of length 1 that is the Frobenius norm

Examples

x <- matrix(rnorm(300), ncol = 3)
y <- matrix(rnorm(300), ncol = 3)
compute_proj_dist(x, y)
#> [1] 235.2667