normtensor: Calculate the Euclidean norm or Euclidean operator norm of a...

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Calculates the Euclidean norm of a tensor or its subtensors.

Usage

1
2
3
4
5
6
norm(X,...)
## S3 method for class 'tensor'
norm(X,i=NULL,...,by=NULL)
opnorm(X,...)
## S3 method for class 'tensor'
opnorm(X,i=NULL,...,by=NULL)

Arguments

X

The tensor

i

For norm the dimensions to of the subtensors to be used. If missing the norm of the whole tensor is computed. For opnorm the dimensions of the image.

...

unused

by

the list dimension, if i is not specified the norm is calculated for each of these in parallel.

Details

Value

norm

either a single number giving the norm of the tensor or a tensors with the dimensions i removed containing the individual norms in each entry.

opnorm

a tensor of dimension dim(X)[by] giving the Euclidean operator norm of the tensor (i.e. its largest singular value)

Author(s)

K. Gerald van den Boogaart

See Also

to.tensor

Examples

1
2
3
4
5
C <- to.tensor(1:20,c(A=4,B=5))
norm(C,"A")
norm(C,2)
norm(C,c("A","B"))
opnorm(C,"A")

tensorA documentation built on Nov. 20, 2020, 9:07 a.m.

Related to normtensor in tensorA...