creation

package
v0.0.2-0...-db6250e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2020 License: CC0-1.0, CC0-1.0, CC0-1.0, + 1 more Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NthMonomial

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

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

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

ToMonomial returns parallel slices of exponents and coefficients describing the monomial x^k.

func ToTerm

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL