Contents

TENSOR compute inner products of tensor product of MD polynomial basis functions

A = TENSOR(name,N,I,PHI,w,lb,ub) return rows of N-fold tensor indices
with basis functions corresponding to (PHI,I).

` Memory-saving vector of rows format corresponding to all nonzero entries of the N-fold tensor of dimension TK (TK=length(I)). TENSOR is stored in name.

INDEX_TENSOR Recursive index generation for PCE-tensor

A = INDEXTENSOR(N,K) return sorted (increasing) tensor indices for K elements of order N.
Fast & low memory storag property: Reduce total number of K^N permutations
(==permutations of elements 1,..,K w/o repetition of elements)
using ortogonality.