halg-core-0.6.0.0: Core types and functions of halg computational algebra suite.
Safe HaskellNone
LanguageHaskell2010

Algebra.Field.Finite

Synopsis

Documentation

class (Field k, Characteristic k) => FiniteField k where Source #

Abstract class for finite fields.

Methods

power :: proxy k -> Natural Source #

elements :: proxy k -> [k] Source #

Instances

Instances details
Reifies p Integer => FiniteField (F p) Source # 
Instance details

Defined in Algebra.Field.Prime

Methods

power :: proxy (F p) -> Natural Source #

elements :: proxy (F p) -> [F p] Source #

order :: FiniteField k => proxy k -> Natural Source #

newtype ViaElements k Source #

Constructors

ViaElements 

Fields

Instances

Instances details
FiniteField k => Random (ViaElements k) Source # 
Instance details

Defined in Algebra.Field.Finite

Methods

randomR :: RandomGen g => (ViaElements k, ViaElements k) -> g -> (ViaElements k, g)

random :: RandomGen g => g -> (ViaElements k, g)

randomRs :: RandomGen g => (ViaElements k, ViaElements k) -> g -> [ViaElements k]

randoms :: RandomGen g => g -> [ViaElements k]