Documentation ¶
Overview ¶
Package ff contains the interfaces describing finite fields and their elements.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Element ¶
type Element interface { Add(Element) Element Copy() Element Equal(Element) bool Err() error Inv() Element IsNonzero() bool IsOne() bool IsZero() bool Minus(Element) Element Mult(Element) Element Neg() Element NTerms() uint Plus(Element) Element Pow(uint) Element Prod(Element, Element) Element SetNeg() Element SetUnsigned(uint) Element String() string Sub(Element) Element Times(Element) Element Trace() Element }
Element defines the methods that an element of a finite field must support
type Field ¶
type Field interface { Card() uint Char() uint Element(interface{}) (Element, error) ElementFromSigned(int) Element ElementFromString(string) (Element, error) ElementFromUnsigned(uint) Element Elements() []Element MultGenerator() Element One() Element RandElement() Element RegexElement(bool) string String() string Zero() Element }
Field defines the methods that a finite field must support
Click to show internal directories.
Click to hide internal directories.