finite-field-0.9.0: Finite Fields

Copyright(c) Masahiro Sakai 2013
LicenseBSD-style
Maintainermasahiro.sakai@gmail.com
Stabilityprovisional
Portabilityportable
Safe HaskellSafe
LanguageHaskell2010

Data.FiniteField.Base

Description

 

Synopsis

Documentation

class Fractional k => FiniteField k where Source #

Type class for finite fields

Minimal complete definition

order, char, pthRoot, allValues

Methods

order :: k -> Integer Source #

The order is number of elements of a finite field k. It of the form p^n, where p is prime number called the characteristic of the field, and n is a positive integer.

char :: k -> Integer Source #

The characteristic of a field, p.

pthRoot :: k -> k Source #

The inverse of Frobenius endomorphism xx^p.

allValues :: [k] Source #

All values of a field