Learn R Programming

lmreg (version 1.3)

frob: Frobenius norm of a matrix

Description

Computes the Frobenius norm of a given matrix.

Usage

frob(M)

Value

A scalar value, describing the Frobenius norm (positive square root of sum of squared elements) of M.

Arguments

M

Matrix whose Frobenius norm is to be computed.

Author

Debasis Sengupta <shairiksengupta@gmail.com>, Jinwen Qiu <qjwsnow_ctw@hotmail.com>

References

Sengupta and Jammalamadaka (2019), Linear Models and Regression with R: An Integrated Approach.

Examples

Run this code
frob(matrix(2,3,2))

Run the code above in your browser using DataLab