| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Numeric.GMP.Types
Description
GMP types.
Synopsis
- data MPZ = MPZ {}
- data MPQ = MPQ {}
- mpq_numref :: Ptr MPQ -> Ptr MPZ
- mpq_denref :: Ptr MPQ -> Ptr MPZ
- data MPF = MPF {}
- data GMPRandState = GMPRandState {
- gmprsSeed :: !MPZ
- gmprsAlg :: !GMPRandAlg
- gmprsAlgData :: !(Ptr ())
- newtype MPLimb = MPLimb Word64
- newtype MPLimbSigned = MPLimbSigned Int64
- newtype MPSize = MPSize Int64
- newtype MPExp = MPExp Int64
- newtype MPBitCnt = MPBitCnt Word64
- newtype GMPRandAlg = GMPRandAlg Word32
Documentation
mpz_t
Instances
| Storable MPZ # | |
Defined in Numeric.GMP.Types | |
mpq_t
Instances
| Storable MPQ # | |
Defined in Numeric.GMP.Types | |
mpq_numref :: Ptr MPQ -> Ptr MPZ #
Get pointers to numerator and denominator (these are macros in the C API).
mpq_denref :: Ptr MPQ -> Ptr MPZ #
Get pointers to numerator and denominator (these are macros in the C API).
mpf_t
Instances
| Storable MPF # | |
Defined in Numeric.GMP.Types | |
data GMPRandState #
gmp_randstate_t
Constructors
| GMPRandState | |
Fields
| |
Instances
| Storable GMPRandState # | |
Defined in Numeric.GMP.Types Methods sizeOf :: GMPRandState -> Int # alignment :: GMPRandState -> Int # peekElemOff :: Ptr GMPRandState -> Int -> IO GMPRandState # pokeElemOff :: Ptr GMPRandState -> Int -> GMPRandState -> IO () # peekByteOff :: Ptr b -> Int -> IO GMPRandState # pokeByteOff :: Ptr b -> Int -> GMPRandState -> IO () # peek :: Ptr GMPRandState -> IO GMPRandState # poke :: Ptr GMPRandState -> GMPRandState -> IO () # | |
mp_limb_t
Instances
newtype MPLimbSigned #
mp_limb_signed_t
Constructors
| MPLimbSigned Int64 |
Instances
mp_size_t
Instances
mp_exp_t
Instances
| Bounded MPExp # | |
| Enum MPExp # | |
Defined in Numeric.GMP.Types | |
| Eq MPExp # | |
| Integral MPExp # | |
| Data MPExp # | |
Defined in Numeric.GMP.Types Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> MPExp -> c MPExp # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c MPExp # dataTypeOf :: MPExp -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c MPExp) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c MPExp) # gmapT :: (forall b. Data b => b -> b) -> MPExp -> MPExp # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> MPExp -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> MPExp -> r # gmapQ :: (forall d. Data d => d -> u) -> MPExp -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> MPExp -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> MPExp -> m MPExp # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> MPExp -> m MPExp # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> MPExp -> m MPExp # | |
| Num MPExp # | |
| Ord MPExp # | |
| Read MPExp # | |
| Real MPExp # | |
Defined in Numeric.GMP.Types Methods toRational :: MPExp -> Rational # | |
| Show MPExp # | |
| Ix MPExp # | |
| Storable MPExp # | |
| Bits MPExp # | |
Defined in Numeric.GMP.Types Methods (.&.) :: MPExp -> MPExp -> MPExp # (.|.) :: MPExp -> MPExp -> MPExp # xor :: MPExp -> MPExp -> MPExp # complement :: MPExp -> MPExp # shift :: MPExp -> Int -> MPExp # rotate :: MPExp -> Int -> MPExp # setBit :: MPExp -> Int -> MPExp # clearBit :: MPExp -> Int -> MPExp # complementBit :: MPExp -> Int -> MPExp # testBit :: MPExp -> Int -> Bool # bitSizeMaybe :: MPExp -> Maybe Int # shiftL :: MPExp -> Int -> MPExp # unsafeShiftL :: MPExp -> Int -> MPExp # shiftR :: MPExp -> Int -> MPExp # unsafeShiftR :: MPExp -> Int -> MPExp # rotateL :: MPExp -> Int -> MPExp # | |
| FiniteBits MPExp # | |
Defined in Numeric.GMP.Types Methods finiteBitSize :: MPExp -> Int # countLeadingZeros :: MPExp -> Int # countTrailingZeros :: MPExp -> Int # | |
mp_bitcnt_t
Instances
newtype GMPRandAlg #
gmp_randalg_t
Constructors
| GMPRandAlg Word32 |