uint64numberexponents

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

This section is empty.

Types

type Slice

type Slice []uint64

Slice defines a slice of univariate exponents.

func (Slice) Append

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

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) Entry

func (s Slice) Entry(i int) object.Element

Entry returns the i-th entry of the slice. This will panic if out of range.

func (Slice) Hash

func (s Slice) Hash() hash.Value

Hash returns a hash value for this slice.

func (Slice) Len

func (s Slice) Len() int

Len returns the length of this slice of exponents.

func (Slice) Less

func (s Slice) Less(i int, j int) bool

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

func (s Slice) PrettyPrint(i int, names []string) string

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

func (s Slice) Slice(k int, m int) slice.Interface

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

func (s Slice) Swap(i int, j int)

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.

Jump to

Keyboard shortcuts

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