Documentation ¶
Index ¶
- func NthMonomial(N int, es exponents.Interface, newEs exponents.NewFunc, ...) (exponents.Interface, coefficients.Interface, error)
- func NthTerm(N int, es exponents.Interface, cs coefficients.Interface, ...) (exponents.Interface, coefficients.Interface, error)
- func PruneZeroCoefficients(es exponents.Interface, cs coefficients.Interface) (exponents.Interface, coefficients.Interface, error)
- func SortAndMergeExponentsAndCoefficients(es exponents.Interface, cs coefficients.Interface, newEs exponents.NewFunc, ...) (exponents.Interface, coefficients.Interface, error)
- func SortExponentsAndCoefficients(es exponents.Interface, cs coefficients.Interface) (exponents.Interface, coefficients.Interface, error)
- func ToMonomial(k object.Element, newEs exponents.NewFunc, newCs coefficients.NewFunc) (exponents.Interface, coefficients.Interface, error)
- func ToTerm(k object.Element, c object.Element, newEs exponents.NewFunc, ...) (exponents.Interface, coefficients.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NthMonomial ¶
func NthMonomial(N int, es exponents.Interface, newEs exponents.NewFunc, newCs coefficients.NewFunc) (exponents.Interface, coefficients.Interface, error)
NthMonomial returns parallel slices of exponents and coefficients describing the N-th monomial x^k in the polynomial f, where the exponents of f are described by the given slice of exponents es.
func NthTerm ¶
func NthTerm(N int, es exponents.Interface, cs coefficients.Interface, newEs exponents.NewFunc, newCs coefficients.NewFunc) (exponents.Interface, coefficients.Interface, error)
NthTerm returns parallel slices of exponents and coefficients describing the N-th term c * x^k in the polynomial f, where f is described by the given parallel slices of exponents es and coefficients cs.
func PruneZeroCoefficients ¶
func PruneZeroCoefficients(es exponents.Interface, cs coefficients.Interface) (exponents.Interface, coefficients.Interface, error)
PruneZeroCoefficients takes parallel slices of exponents es and coefficients cs, and removes any entries with zero coefficient. The slices es and cs are assumed to be of the same length. Important: Note that this will MODIFY the arguments.
func SortAndMergeExponentsAndCoefficients ¶
func SortAndMergeExponentsAndCoefficients(es exponents.Interface, cs coefficients.Interface, newEs exponents.NewFunc, newCs coefficients.NewFunc) (exponents.Interface, coefficients.Interface, error)
SortAndMergeExponentsAndCoefficients parallel sorts the given slices of exponents es and coefficients cs in strictly increasing exponent order. Any duplicate exponents are merged (and their coefficients summed). The slices es and cs are assumed to be of the same length. Important: Note that this will MODIFY the arguments.
func SortExponentsAndCoefficients ¶
func SortExponentsAndCoefficients(es exponents.Interface, cs coefficients.Interface) (exponents.Interface, coefficients.Interface, error)
SortExponentsAndCoefficients parallel sorts the given slices of exponents es and coefficients cs in strictly increasing exponent order. Note that this will NOT merge duplicate exponents. The slices es and cs are assumed to be of the same length. Important: Note that this will MODIFY the arguments.
func ToMonomial ¶
func ToMonomial(k object.Element, newEs exponents.NewFunc, newCs coefficients.NewFunc) (exponents.Interface, coefficients.Interface, error)
ToMonomial returns parallel slices of exponents and coefficients describing the monomial x^k.
func ToTerm ¶
func ToTerm(k object.Element, c object.Element, newEs exponents.NewFunc, newCs coefficients.NewFunc) (exponents.Interface, coefficients.Interface, error)
ToTerm returns parallel slices of exponents and coefficients describing the term c * x^k, where c is an element in the coefficient ring.
Types ¶
This section is empty.