MultivariatePolynomialBasis.CreateTotalDegree Method

Creates a total-degree polynomial basis for the specified dimension and maximum degree.

Definition

Namespace: Numerics.NET.Curves.Surfaces
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.0.0
C#
public static MultivariatePolynomialBasis CreateTotalDegree(
	int dimension,
	int maxDegree
)

Parameters

dimension  Int32
The dimension of the input space. Must be positive.
maxDegree  Int32
The maximum total degree of monomials. Must be non-negative.

Return Value

MultivariatePolynomialBasis
A MultivariatePolynomialBasis representing all monomials with total degree ≤ maxDegree.

Remarks

The basis monomials are enumerated in canonical order: first by total degree (0, 1, 2, ..., maxDegree), then lexicographically within each degree.

Exceptions

ArgumentOutOfRangeExceptiondimension is not positive, or maxDegree is negative.

See Also