Skip to main content

monomial_powers

Function monomial_powers 

Source
pub fn monomial_powers(ndim: usize, degree: i32) -> Vec<Vec<u32>>
Expand description

The exponents of all monomials of total degree ≤ degree in ndim variables, in SciPy’s order (by degree, then by combinations_with_replacement).