Learn R Programming

lmreg (version 1.2)

frob: Frobenius norm of a matrix

Description

Computes the Frobenius norm of a given matrix.

Usage

frob(M)

Arguments

M

Matrix whose Frobenius norm is to be computed.

Value

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

References

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

Examples

Run this code
# NOT RUN {
frob(matrix(2,3,2))
# }

Run the code above in your browser using DataLab