iota-0.1.0.0
Safe HaskellSafe-Inferred
LanguageGHC2021

Data.IntMod

Synopsis

Documentation

modulus :: Num a => a Source #

(+%) :: Int -> Int -> Int infixl 6 Source #

(-%) :: Int -> Int -> Int infixl 6 Source #

(*%) :: Int -> Int -> Int infixl 7 Source #

(/%) :: Int -> Int -> Int infixl 7 Source #

>>> 1 /% 0
0

(^%) :: Int -> Int -> Int infixr 8 Source #

newtype IntMod Source #

Constructors

IntMod 

Fields

Instances

Instances details
Bounded IntMod Source # 
Instance details

Defined in Data.IntMod

Enum IntMod Source # 
Instance details

Defined in Data.IntMod

Num IntMod Source # 
Instance details

Defined in Data.IntMod

Read IntMod Source # 
Instance details

Defined in Data.IntMod

Fractional IntMod Source # 
Instance details

Defined in Data.IntMod

Integral IntMod Source # 
Instance details

Defined in Data.IntMod

Real IntMod Source # 
Instance details

Defined in Data.IntMod

Show IntMod Source # 
Instance details

Defined in Data.IntMod

Eq IntMod Source # 
Instance details

Defined in Data.IntMod

Methods

(==) :: IntMod -> IntMod -> Bool #

(/=) :: IntMod -> IntMod -> Bool #

Ord IntMod Source # 
Instance details

Defined in Data.IntMod

Prim IntMod Source # 
Instance details

Defined in Data.IntMod

Unbox IntMod Source # 
Instance details

Defined in Data.IntMod

Vector Vector IntMod Source # 
Instance details

Defined in Data.IntMod

Methods

basicUnsafeFreeze :: Mutable Vector s IntMod -> ST s (Vector IntMod)

basicUnsafeThaw :: Vector IntMod -> ST s (Mutable Vector s IntMod)

basicLength :: Vector IntMod -> Int

basicUnsafeSlice :: Int -> Int -> Vector IntMod -> Vector IntMod

basicUnsafeIndexM :: Vector IntMod -> Int -> Box IntMod

basicUnsafeCopy :: Mutable Vector s IntMod -> Vector IntMod -> ST s ()

elemseq :: Vector IntMod -> IntMod -> b -> b

MVector MVector IntMod Source # 
Instance details

Defined in Data.IntMod

Methods

basicLength :: MVector s IntMod -> Int

basicUnsafeSlice :: Int -> Int -> MVector s IntMod -> MVector s IntMod

basicOverlaps :: MVector s IntMod -> MVector s IntMod -> Bool

basicUnsafeNew :: Int -> ST s (MVector s IntMod)

basicInitialize :: MVector s IntMod -> ST s ()

basicUnsafeReplicate :: Int -> IntMod -> ST s (MVector s IntMod)

basicUnsafeRead :: MVector s IntMod -> Int -> ST s IntMod

basicUnsafeWrite :: MVector s IntMod -> Int -> IntMod -> ST s ()

basicClear :: MVector s IntMod -> ST s ()

basicSet :: MVector s IntMod -> IntMod -> ST s ()

basicUnsafeCopy :: MVector s IntMod -> MVector s IntMod -> ST s ()

basicUnsafeMove :: MVector s IntMod -> MVector s IntMod -> ST s ()

basicUnsafeGrow :: MVector s IntMod -> Int -> ST s (MVector s IntMod)

newtype Vector IntMod Source # 
Instance details

Defined in Data.IntMod

newtype Vector IntMod = V_IntMod (Vector Int)
newtype MVector s IntMod Source # 
Instance details

Defined in Data.IntMod

newtype MVector s IntMod = MV_IntMod (MVector s Int)