Skip to contents

Calculates the Frobenius norm of a tensor.

Usage

fnorm(x, ...)

Arguments

x

A tensor or matrix.

...

Additional arguments.

Value

A scalar value representing the Frobenius norm.

Examples

t <- tensor(array(1:24, dim = c(3, 4, 2)))
fnorm(t)
#> [1] 70