Documentation ¶
Index ¶
- func CmpGrevlex(R Interface, S1 []object.Element, S2 []object.Element) (int, error)
- func CmpGrevlexInt64(S1 []int64, S2 []int64) (int, error)
- func CmpGrevlexInteger(S1 []*integer.Element, S2 []*integer.Element) (int, error)
- func CmpGrevlexRational(S1 []*rational.Element, S2 []*rational.Element) (int, error)
- func CmpGrevlexUint64(S1 []uint64, S2 []uint64) (int, error)
- func CmpGrlex(R Interface, S1 []object.Element, S2 []object.Element) (int, error)
- func CmpGrlexInt64(S1 []int64, S2 []int64) (int, error)
- func CmpGrlexInteger(S1 []*integer.Element, S2 []*integer.Element) (int, error)
- func CmpGrlexRational(S1 []*rational.Element, S2 []*rational.Element) (int, error)
- func CmpGrlexUint64(S1 []uint64, S2 []uint64) (int, error)
- func CmpLex(R compare.TotalOrder, S1 []object.Element, S2 []object.Element) (int, error)
- func CmpLexInt64(S1 []int64, S2 []int64) (int, error)
- func CmpLexInteger(S1 []*integer.Element, S2 []*integer.Element) (int, error)
- func CmpLexRational(S1 []*rational.Element, S2 []*rational.Element) (int, error)
- func CmpLexUint64(S1 []uint64, S2 []uint64) (int, error)
- type Interface
- type MonomialOrderer
- type Type
- func (c Type) Cmp(R Interface, S1 []object.Element, S2 []object.Element) (int, error)
- func (c Type) CmpInt64(S1 []int64, S2 []int64) (int, error)
- func (c Type) CmpInteger(S1 []*integer.Element, S2 []*integer.Element) (int, error)
- func (c Type) CmpRational(S1 []*rational.Element, S2 []*rational.Element) (int, error)
- func (c Type) CmpUint64(S1 []uint64, S2 []uint64) (int, error)
- func (c Type) IsValid() bool
- func (c Type) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CmpGrevlex ¶
CmpGrevlex compares the slices S1 and S2 using graded reverse lexicographic (grevlex) order, where the elements are compared using R.. Returns -1 if S1 < S2, 0 if S1 = S2, and +1 if S1 > S2. This will return an error if len(S1) does not equal len(S2).
func CmpGrevlexInt64 ¶
CmpGrevlexInt64 compares the slices S1 and S2 using graded reverse lexicographic (grevlex) order. Returns -1 if S1 < S2, 0 if S1 = S2, and +1 if S1 > S2. This will return an error if len(S1) does not equal len(S2).
func CmpGrevlexInteger ¶
CmpGrevlexInteger compares the slices S1 and S2 using graded reverse lexicographic (grevlex) order. Returns -1 if S1 < S2, 0 if S1 = S2, and +1 if S1 > S2. This will return an error if len(S1) does not equal len(S2).
func CmpGrevlexRational ¶
CmpGrevlexRational compares the slices S1 and S2 using graded reverse lexicographic (grevlex) order. Returns -1 if S1 < S2, 0 if S1 = S2, and +1 if S1 > S2. This will return an error if len(S1) does not equal len(S2).
func CmpGrevlexUint64 ¶
CmpGrevlexUint64 compares the slices S1 and S2 using graded reverse lexicographic (grevlex) order. Returns -1 if S1 < S2, 0 if S1 = S2, and +1 if S1 > S2. This will return an error if len(S1) does not equal len(S2).
func CmpGrlex ¶
CmpGrlex compares the slices S1 and S2 using graded lexicographic (grlex) order, where the elements are compared using R. Returns -1 if S1 < S2, 0 if S1 = S2, and +1 if S1 > S2. This will return an error if len(S1) does not equal len(S2).
func CmpGrlexInt64 ¶
CmpGrlexInt64 compares the slices S1 and S2 using graded lexicographic (grlex) order. Returns -1 if S1 < S2, 0 if S1 = S2, and +1 if S1 > S2. This will return an error if len(S1) does not equal len(S2).
func CmpGrlexInteger ¶
CmpGrlexInteger compares the slices S1 and S2 using graded lexicographic (grlex) order. Returns -1 if S1 < S2, 0 if S1 = S2, and +1 if S1 > S2. This will return an error if len(S1) does not equal len(S2).
func CmpGrlexRational ¶
CmpGrlexRational compares the slices S1 and S2 using graded lexicographic (grlex) order. Returns -1 if S1 < S2, 0 if S1 = S2, and +1 if S1 > S2. This will return an error if len(S1) does not equal len(S2).
func CmpGrlexUint64 ¶
CmpGrlexUint64 compares the slices S1 and S2 using graded lexicographic (grlex) order. Returns -1 if S1 < S2, 0 if S1 = S2, and +1 if S1 > S2. This will return an error if len(S1) does not equal len(S2).
func CmpLex ¶
CmpLex compares the slices S1 and S2 using lexicographic (lex) order, where the elements are compared using R. Returns -1 if S1 < S2, 0 if S1 = S2, and +1 if S1 > S2. This will return an error if len(S1) does not equal len(S2).
func CmpLexInt64 ¶
CmpLexInt64 compares the slices S1 and S2 using lexicographic (lex) order. Returns -1 if S1 < S2, 0 if S1 = S2, and +1 if S1 > S2. This will return an error if len(S1) does not equal len(S2).
func CmpLexInteger ¶
CmpLexInteger compares the slices S1 and S2 using lexicographic (lex) order. Returns -1 if S1 < S2, 0 if S1 = S2, and +1 if S1 > S2. This will return an error if len(S1) does not equal len(S2).
func CmpLexRational ¶
CmpLexRational compares the slices S1 and S2 using lexicographic (lex) order. Returns -1 if S1 < S2, 0 if S1 = S2, and +1 if S1 > S2. This will return an error if len(S1) does not equal len(S2).
Types ¶
type Interface ¶
type Interface interface { abelianmonoid.Interface compare.Cmper }
Interface defines the interface that must be satisfied in order to use one of the standard monomial orders.
type MonomialOrderer ¶
type MonomialOrderer interface {
MonomialOrder() Type // MonomialOrder returns the monomial order.
}
MonomialOrderer defines the interface satisfied by an object with a MonomialOrder method.
type Type ¶
type Type uint8
Type represents one of the standard monomial orders as defined by the constants "Lex", "Grlex", and "Grevlex".
const ( Lex Type = iota // Lexicographic order. We say that x > y if the left-most non-zero entry of x - y is positive. Grlex // Graded lexicographic order. We say that x > y if either the total order |x| > |y|, or if |x| = |y| and the left-most non-zero entry of x - y is positive. Grevlex // Graded reverse lexicographic order. We say that x > y if either the total order |x| > |y|, or if |x| = |y| and the right-most non-zero entry of x - y is negative. )
The three standard monomial orders.
func (Type) Cmp ¶
Cmp compares the slices S1 and S2 using the monomial order, where the elements are compared using R. This will return an error if len(S1) does not equal len(S2).
func (Type) CmpInt64 ¶
CmpInt64 compares the slices S1 and S2 using the monomial order. This will return an error if len(S1) does not equal len(S2).
func (Type) CmpInteger ¶
CmpInteger compares the slices S1 and S2 using the monomial order. This will return an error if len(S1) does not equal len(S2).
func (Type) CmpRational ¶
CmpRational compares the slices S1 and S2 using the monomial order. This will return an error if len(S1) does not equal len(S2).
func (Type) CmpUint64 ¶
CmpUint64 compares the slices S1 and S2 using the monomial order. This will return an error if len(S1) does not equal len(S2).