Learn R Programming

TensorTools (version 1.0.0)

fnorm: The Frobenius Norm

Description

The Frobenius norm of an array is the square root of the sum of its squared elements. This function works for vector and matrix arguments as well.

Usage

fnorm(tnsr)

Value

The Frobenius norm

Arguments

tnsr,

a 3-mode tensor S3 class object

Author

Kyle Caudle

Randy Hoover

Jackson Cates

Everett Sandbo

References

Friedland, S., & Aliabadi, M. (2018). Linear algebra and matrices. Society for Industrial and Applied Mathematics.

Examples

Run this code
T <- t_rand(modes=c(2,2,4))
fnorm(T$data)

Run the code above in your browser using DataLab