Learn R Programming

liminal (version 0.1.2)

compute_proj_dist: Compute Frobenius norm of matrix-like objects x and y

Description

Compute Frobenius norm of matrix-like objects x and y

Usage

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

Run this code
# NOT RUN {
x <- matrix(rnorm(300), ncol = 3)
y <- matrix(rnorm(300), ncol = 3)
compute_proj_dist(x, y)
# }

Run the code above in your browser using DataLab