TENSELE {PTAk} | R Documentation |
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)
T |
a list like a PTAk object and minimally just contains v |
moins |
if not NULL , vector of indexes (in the list T) to skip |
asarray |
logical to specify the output form TRUE gives an array, FALSE gives a vector |
order |
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 |
id |
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. |
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
.
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.
Didier Leibovici c3s2i@free.fr