All functions

as_dtensor()

Convert objects to dense tensors

as_sptensor()

Convert objects to sparse tensors

dim(<dtensor>) dim(<sptensor>)

Dimensions of a tensor

dimnames(<dtensor>) `dimnames<-`(<dtensor>,<list>) `dimnames<-`(<dtensor>,<NULL>) `dimnames<-`(<dtensor>,<ANY>) dimnames(<sptensor>) `dimnames<-`(<sptensor>,<list>) `dimnames<-`(<sptensor>,<NULL>) `dimnames<-`(<sptensor>,<ANY>)

Dimension names of a tensor

dtensor-class

An S4 class for a dense tensor

`[`(<dtensor>,<missing>,<missing>,<ANY>) `[`(<dtensor>,<numeric>,<missing>,<ANY>) `[`(<dtensor>,<missing>,<numeric>,<ANY>) `[`(<dtensor>,<numeric>,<numeric>,<ANY>) `[`(<dtensor>,<matrix>,<missing>,<ANY>) `[`(<dtensor>,<list>,<missing>,<ANY>)

Extract values from a dense tensor

`[<-`(<dtensor>,<ANY>,<ANY>,<ANY>) `[<-`(<dtensor>,<ANY>,<missing>,<ANY>) `[<-`(<dtensor>,<matrix>,<missing>,<ANY>) `[<-`(<dtensor>,<list>,<missing>,<ANY>)

Replace values from a dense tensor

dtensor()

Construct a dense tensor

fill_missing_indices()

Fill NULL indices with a range from 1:dim

innerprod()

Calculate the inner product of a pair of tensors

is_dtensor() is_sptensor() is_tensor()

Test if the object is a tensor

length(<tensor>)

Length of a tensor

norm()

Calculate the Frobenius norm of a tensor

nzsubs()

Subscripts of non-zero values in a tensor

nzvals()

Non-zero values in a tensor

outerprod() ttt()

Calculate the outer product of a pair of tensors

refold()

Refold an unfolded tensor

sptensor-class

An S4 class for a sparse tensor

`[`(<sptensor>,<character>,<missing>,<ANY>) `[`(<sptensor>,<missing>,<character>,<ANY>) `[`(<sptensor>,<character>,<character>,<ANY>) `[`(<sptensor>,<missing>,<missing>,<ANY>) `[`(<sptensor>,<numeric>,<missing>,<ANY>) `[`(<sptensor>,<missing>,<numeric>,<ANY>) `[`(<sptensor>,<numeric>,<numeric>,<ANY>) `[`(<sptensor>,<list>,<missing>,<ANY>) `[`(<sptensor>,<matrix>,<missing>,<ANY>)

Extract values from a sparse tensor

`[<-`(<sptensor>,<character>,<missing>,<ANY>) `[<-`(<sptensor>,<missing>,<character>,<ANY>) `[<-`(<sptensor>,<character>,<character>,<ANY>) `[<-`(<sptensor>,<missing>,<missing>,<ANY>) `[<-`(<sptensor>,<numeric>,<missing>,<ANY>) `[<-`(<sptensor>,<missing>,<numeric>,<ANY>) `[<-`(<sptensor>,<numeric>,<numeric>,<ANY>) `[<-`(<sptensor>,<list>,<missing>,<ANY>) `[<-`(<sptensor>,<matrix>,<missing>,<ANY>)

Replace values from a sparse tensor

sptensor()

Construct a sparse tensor

squeeze()

Remove tensor dimensions of size 1

tensorr

tensorr: sparse tensors in R

ttm()

Tensor times matrix

ttv()

Tensor times vector

unfold()

Unfold (matricize) a tensor along a mode

unfolded_dtensor-class

An S4 class for an unfolded dense tensor

unfolded_dtensor()

Construct an unfolded dense tensor

unfolded_sptensor-class

An S4 class for an unfolded sparse tensor

unfolded_sptensor()

Construct an unfolded sparse tensor