Non-Symmetric Macdonald expansion
I want to expand a given polynomial in n variables, homogeneous of degree k as a linear combination of Non-Symmetric Macdonald polynomials Eα where α varies over Zn≥0 with ∑αi=k.
Background: We know that these Macdonald polynomials do indeed form a basis of the vector space of homogeneous degree k polynomials in n variables. The Non-Symmetric Macdonald polynomials I am interested in is the type GLn kind. And their sage implementation can be found here: sage documentation
Bottom line is that we have a basis of a vector space already implemented in sage. Now how do we use it to compute coefficients of any vector when written in terms of this basis?