ff

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: BSD-3-Clause Imports: 0 Imported by: 0

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
}

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

Jump to

Keyboard shortcuts

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