Computes the Tensor Product of a list of vectors (or matrices) according to a given order.
TENSELE(T,moins=NULL, asarray=TRUE,order=NULL,id=NULL)
According to asarray
the value is either an array, or a vector
representing the tensor product of the vectors (not in moins), the dimension
in order[1]
running the slowest.
a list like a PTAk
object and minimally just contains v
if not NULL
, vector of indexes (in the list T) to skip
logical to specify the output form TRUE
gives an array, FALSE
gives a vector
if not NULL
vector of length length(T)
, NULL
is equivalent to
length(T):1
as the function makes indexes in order run slowest to
fastest
when T
is a list of matrices, can be either a vector of
length(T)
giving indexes of the vectors for each space (following
order) or a list of vectors of indexes.
Didier G. Leibovici
The tensor product of the vectors (or matrices) in the list T
is
computed, skipping or not the indexes in moins
, the output tensor is
either in tensor form or in vector form. The way the tensor product is done
follows order
.
REBUILD