TENSELE {PTAk}R Documentation

Elementary Tensor product

Description

Computes the Tensor Product of a list of vectors (or matrices) according to a given order.

Usage

 TENSELE(T,moins=NULL, asarray=TRUE,order=NULL,id=NULL)

Arguments

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.

Details

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.

Value

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.

Author(s)

Didier G. Leibovici

See Also

REBUILD


[Package PTAk version 2.0.0 Index]