sigma-py / orthopy

:triangular_ruler: Orthogonal polynomials in all shapes and sizes.
181 stars 18 forks source link

"barycentric" tensor #87

Open nschloe opened 4 years ago

nschloe commented 4 years ago

For higher-dimensional polynomials, the fitting data structure for each level would be a numpy.array of shape (n, n, ...), but only the lower (or upper) triangle of (n,n) is used. Perhaps even more fitting would be to address the entries in "barycentric" coordinates, such that the indices sum up to L. Check with the product scheme and, perhaps, ndim.