Documentation
¶
Index ¶
- type Slice
- func (s *Slice) Append(x object.Element) unwrappedexponents.Interface
- func (s *Slice) AppendSlice(S slice.Interface) unwrappedexponents.Interface
- func (s *Slice) Entry(i int) object.Element
- func (s *Slice) GobDecode(buf []byte) error
- func (s *Slice) GobEncode() ([]byte, error)
- func (s *Slice) Hash() hash.Value
- func (s *Slice) Len() int
- func (s *Slice) Less(i int, j int) bool
- func (s *Slice) PrettyPrint(i int, names []string) string
- func (s *Slice) Slice(k int, m int) slice.Interface
- func (s *Slice) Swap(i int, j int)
- func (s *Slice) Universe() unwrappedexponents.Universe
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Slice ¶
type Slice struct {
// contains filtered or unexported fields
}
Slice defines a slice of multinomial exponents.
func New ¶
func New(k *uint64vector.Parent, capacity int) *Slice
New returns a new exponent slice using the given universe and capacity.
func (*Slice) Append ¶
func (s *Slice) Append(x object.Element) unwrappedexponents.Interface
Append appends the element x to the end of the exponents. Returns the updated exponents on success (which will be of the same underlying type). If x is not of the required type, this will panic.
func (*Slice) AppendSlice ¶
func (s *Slice) AppendSlice(S slice.Interface) unwrappedexponents.Interface
AppendSlice appends the elements in S to the end of the exponents. Returns the updated exponents on success (which will be of the same underlying type). If the elements in S are not of the required type, this will panic.
func (*Slice) Less ¶
Less reports whether the element with index i should sort before the element with index j. This panics if i or j are aout of range.
func (*Slice) PrettyPrint ¶
PrettyPrint returns a string representation of the i-th exponent using the given slice of names. This will panic if the index is out of range, or if there are not enough names for the dimension.
func (*Slice) Slice ¶
Slice returns a subslice of the slice of exponents starting at index k and of length m - k. The returned subslice will be of the same underlying type. This will panic if the arguments are out of range.
func (*Slice) Swap ¶
Swap swaps the elements with indexes i and j. This panics if i or j are out of range.
func (*Slice) Universe ¶
func (s *Slice) Universe() unwrappedexponents.Universe
Universe returns the parent common to the elements in the slice.