Learn R Programming

BioPhysConnectoR (version 1.6-10)

fnorm: Frobenius Norm of Two Matrices

Description

Computation of the Frobenius norm of two matrices as the sum of the squared differences between these matrices.

Usage

fnorm(mat1, mat2)

Arguments

mat1
numerical matrix
mat2
numerical matrix

Value

Return value is the Frobenius norm.

Examples

Run this code
a<-matrix(runif(15, 1, 7), 5, 3)
b<-matrix(rnorm(15, 1, 7), 5, 3)
fn<-fnorm(a, b)

Run the code above in your browser using DataLab