Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Grisette.Internal.Core.Data.Class.IEEEFP
Synopsis
- fpIsNaN :: RealFloat a => a -> Bool
- fpIsPositiveZero :: RealFloat a => a -> Bool
- fpIsNegativeZero :: RealFloat a => a -> Bool
- fpIsPositiveInfinite :: RealFloat a => a -> Bool
- fpIsNegativeInfinite :: RealFloat a => a -> Bool
- fpIsPositive :: RealFloat a => a -> Bool
- fpIsNegative :: RealFloat a => a -> Bool
- fpIsInfinite :: RealFloat a => a -> Bool
- fpIsZero :: RealFloat a => a -> Bool
- fpIsNormal :: RealFloat a => a -> Bool
- fpIsSubnormal :: RealFloat a => a -> Bool
- fpIsPoint :: RealFloat a => a -> Bool
- class SymIEEEFPTraits a where
- symFpIsNaN :: a -> SymBool
- symFpIsPositive :: a -> SymBool
- symFpIsNegative :: a -> SymBool
- symFpIsPositiveInfinite :: a -> SymBool
- symFpIsNegativeInfinite :: a -> SymBool
- symFpIsInfinite :: a -> SymBool
- symFpIsPositiveZero :: a -> SymBool
- symFpIsNegativeZero :: a -> SymBool
- symFpIsZero :: a -> SymBool
- symFpIsNormal :: a -> SymBool
- symFpIsSubnormal :: a -> SymBool
- symFpIsPoint :: a -> SymBool
- class IEEEConstants a where
- fpPositiveInfinite :: a
- fpNegativeInfinite :: a
- fpNaN :: a
- fpNegativeZero :: a
- fpPositiveZero :: a
- class IEEEFPOp a where
- class IEEEFPRoundingOp a mode where
Documentation
fpIsPositiveZero :: RealFloat a => a -> Bool Source #
Check if a floating-point number is positive zero.
fpIsNegativeZero :: RealFloat a => a -> Bool Source #
Check if a floating-point number is negative zero.
fpIsPositiveInfinite :: RealFloat a => a -> Bool Source #
Check if a floating-point number is positive infinite.
fpIsNegativeInfinite :: RealFloat a => a -> Bool Source #
Check if a floating-point number is negative infinite.
fpIsPositive :: RealFloat a => a -> Bool Source #
Check if a floating-point number is positive. +0, +inf are considered positive. nan, -0, -inf are not positive.
fpIsNegative :: RealFloat a => a -> Bool Source #
Check if a floating-point number is negative. -0, -inf are considered negative. nan, +0, +inf are not negative.
fpIsInfinite :: RealFloat a => a -> Bool Source #
Check if a floating-point number is infinite.
fpIsNormal :: RealFloat a => a -> Bool Source #
Check if a floating-point number is normal, i.e., not 0, not inf, not nan, and not denormalized.
fpIsSubnormal :: RealFloat a => a -> Bool Source #
Check if a floating-point number is subnormal, i.e., denormalized. 0, inf, or nan are not subnormal.
fpIsPoint :: RealFloat a => a -> Bool Source #
Check if a floating-point number is a point, i.e., not inf, not nan.
class SymIEEEFPTraits a where Source #
A class for symbolic traits of IEEE floating-point numbers.
Methods
symFpIsNaN :: a -> SymBool Source #
Check if a symbolic floating-point number is not-a-number.
symFpIsPositive :: a -> SymBool Source #
Check if a symbolic floating-point number is positive. +0, +inf are considered positive. nan, -0, -inf are not positive.
symFpIsNegative :: a -> SymBool Source #
Check if a symbolic floating-point number is negative. -0, -inf are considered negative. nan, +0, +inf are not negative.
symFpIsPositiveInfinite :: a -> SymBool Source #
Check if a symbolic floating-point number is positive infinite.
symFpIsNegativeInfinite :: a -> SymBool Source #
Check if a symbolic floating-point number is negative infinite.
symFpIsInfinite :: a -> SymBool Source #
Check if a symbolic floating-point number is infinite.
symFpIsPositiveZero :: a -> SymBool Source #
Check if a symbolic floating-point number is positive zero.
symFpIsNegativeZero :: a -> SymBool Source #
Check if a symbolic floating-point number is negative zero.
symFpIsZero :: a -> SymBool Source #
Check if a symbolic floating-point number is zero.
symFpIsNormal :: a -> SymBool Source #
Check if a symbolic floating-point number is normal, i.e., not 0, not inf, not nan, and not denormalized.
symFpIsSubnormal :: a -> SymBool Source #
Check if a symbolic floating-point number is subnormal, i.e., denormalized. 0, inf, or nan are not subnormal.
symFpIsPoint :: a -> SymBool Source #
Check if a symbolic floating-point number is a point, i.e., not inf, not nan.
Instances
class IEEEConstants a where Source #
Constants for IEEE floating-point numbers.
Methods
fpPositiveInfinite :: a Source #
Positive infinity.
fpNegativeInfinite :: a Source #
Negative infinity.
Not-a-number.
fpNegativeZero :: a Source #
Negative zero.
fpPositiveZero :: a Source #
Positive zero.
Instances
ValidFP eb sb => IEEEConstants (FP eb sb) Source # | |
Defined in Grisette.Internal.Core.Data.Class.IEEEFP Methods fpPositiveInfinite :: FP eb sb Source # fpNegativeInfinite :: FP eb sb Source # fpNegativeZero :: FP eb sb Source # fpPositiveZero :: FP eb sb Source # | |
ValidFP eb sb => IEEEConstants (SymFP eb sb) Source # | |
Defined in Grisette.Internal.Core.Data.Class.IEEEFP Methods fpPositiveInfinite :: SymFP eb sb Source # fpNegativeInfinite :: SymFP eb sb Source # fpNegativeZero :: SymFP eb sb Source # fpPositiveZero :: SymFP eb sb Source # |
class IEEEFPRoundingOp a mode where Source #
Methods
symFpAdd :: mode -> a -> a -> a Source #
symFpSub :: mode -> a -> a -> a Source #
symFpMul :: mode -> a -> a -> a Source #
symFpDiv :: mode -> a -> a -> a Source #
symFpFMA :: mode -> a -> a -> a -> a Source #
symFpSqrt :: mode -> a -> a Source #
symFpRoundToIntegral :: mode -> a -> a Source #
Instances
ValidFP eb sb => IEEEFPRoundingOp (SymFP eb sb) SymFPRoundingMode Source # | |
Defined in Grisette.Internal.Core.Data.Class.IEEEFP Methods symFpAdd :: SymFPRoundingMode -> SymFP eb sb -> SymFP eb sb -> SymFP eb sb Source # symFpSub :: SymFPRoundingMode -> SymFP eb sb -> SymFP eb sb -> SymFP eb sb Source # symFpMul :: SymFPRoundingMode -> SymFP eb sb -> SymFP eb sb -> SymFP eb sb Source # symFpDiv :: SymFPRoundingMode -> SymFP eb sb -> SymFP eb sb -> SymFP eb sb Source # symFpFMA :: SymFPRoundingMode -> SymFP eb sb -> SymFP eb sb -> SymFP eb sb -> SymFP eb sb Source # symFpSqrt :: SymFPRoundingMode -> SymFP eb sb -> SymFP eb sb Source # symFpRoundToIntegral :: SymFPRoundingMode -> SymFP eb sb -> SymFP eb sb Source # |