pub fn monomial_powers(ndim: usize, degree: i32) -> Vec<Vec<u32>>
The exponents of all monomials of total degree ≤ degree in ndim variables, in SciPy’s order (by degree, then by combinations_with_replacement).
degree
ndim
combinations_with_replacement