R/tensor_operations.R
fnorm.Rd
Calculates the Frobenius norm of a tensor.
fnorm(x, ...)
A tensor or matrix.
Additional arguments.
A scalar value representing the Frobenius norm.
t <- tensor(array(1:24, dim = c(3, 4, 2))) fnorm(t) #> [1] 70