Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- newtype GF (p :: Nat) = GF {}
- pattern GF# :: Int# -> GF p
- mkGF :: forall p. KnownNat p => Int -> GF p
- validateGF :: forall p. KnownNat p => GF p -> Bool
- natValAsInt :: KnownNat n => proxy n -> Int
- natValAsWord :: KnownNat n => proxy n -> Word
- reifyNat :: Integral i => i -> (forall n. KnownNat n => Proxy n -> a) -> a
- asGFOf :: GF p -> Proxy p -> GF p
Documentation
newtype GF (p :: Nat) Source #
Instances
Vector Vector (GF p) Source # | |
Defined in Data.GaloisField basicUnsafeFreeze :: Mutable Vector s (GF p) -> ST s (Vector (GF p)) basicUnsafeThaw :: Vector (GF p) -> ST s (Mutable Vector s (GF p)) basicLength :: Vector (GF p) -> Int basicUnsafeSlice :: Int -> Int -> Vector (GF p) -> Vector (GF p) basicUnsafeIndexM :: Vector (GF p) -> Int -> Box (GF p) basicUnsafeCopy :: Mutable Vector s (GF p) -> Vector (GF p) -> ST s () | |
MVector MVector (GF p) Source # | |
Defined in Data.GaloisField basicLength :: MVector s (GF p) -> Int basicUnsafeSlice :: Int -> Int -> MVector s (GF p) -> MVector s (GF p) basicOverlaps :: MVector s (GF p) -> MVector s (GF p) -> Bool basicUnsafeNew :: Int -> ST s (MVector s (GF p)) basicInitialize :: MVector s (GF p) -> ST s () basicUnsafeReplicate :: Int -> GF p -> ST s (MVector s (GF p)) basicUnsafeRead :: MVector s (GF p) -> Int -> ST s (GF p) basicUnsafeWrite :: MVector s (GF p) -> Int -> GF p -> ST s () basicClear :: MVector s (GF p) -> ST s () basicSet :: MVector s (GF p) -> GF p -> ST s () basicUnsafeCopy :: MVector s (GF p) -> MVector s (GF p) -> ST s () basicUnsafeMove :: MVector s (GF p) -> MVector s (GF p) -> ST s () basicUnsafeGrow :: MVector s (GF p) -> Int -> ST s (MVector s (GF p)) | |
KnownNat p => Bounded (GF p) Source # | |
KnownNat p => Num (GF p) Source # | |
Read (GF p) Source # | |
KnownNat p => Fractional (GF p) Source # |
|
Show (GF p) Source # | |
Eq (GF p) Source # | |
Unbox (GF p) Source # | |
Defined in Data.GaloisField | |
IsoUnbox (GF p) Int32 Source # | |
newtype MVector s (GF p) Source # | |
Defined in Data.GaloisField | |
newtype Vector (GF p) Source # | |
Defined in Data.GaloisField |
natValAsInt :: KnownNat n => proxy n -> Int Source #
natValAsWord :: KnownNat n => proxy n -> Word Source #