Contents
INDEX_BASIS compute multiindex for monomials of degree K with d variables
M= INDEX_BASIS (d ,K) returns MD basis index set as matrix M with d columns and P=perm(d,K)=(d+K,d) rows, given maximum polynomial degree K
Each row M(i,:) represents the i-th MD polynomial for i = 1,..., P For each row i, the entry M(i,j) is the exponent of the j -th variable x_j for i = 1,..., P Mnd j = 1,..., d (See also Occupancy problem: placing K balls into d cells)
Used for basis index generation