log-domain-0.13: Log-domain arithmetic

Copyright(c) Edward Kmett 2013-2015
LicenseBSD3
MaintainerEdward Kmett <ekmett@gmail.com>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellSafe
LanguageHaskell98

Numeric.Log.Signed

Description

 
Synopsis

Documentation

data SignedLog a Source #

Log-domain Float and Double values, with a sign bit.

Constructors

SLExp 

Fields

Instances
(Eq a, Fractional a) => Eq (SignedLog a) Source # 
Instance details

Defined in Numeric.Log.Signed

Methods

(==) :: SignedLog a -> SignedLog a -> Bool #

(/=) :: SignedLog a -> SignedLog a -> Bool #

RealFloat a => Floating (SignedLog a) Source # 
Instance details

Defined in Numeric.Log.Signed

RealFloat a => Fractional (SignedLog a) Source # 
Instance details

Defined in Numeric.Log.Signed

Data a => Data (SignedLog a) Source # 
Instance details

Defined in Numeric.Log.Signed

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SignedLog a -> c (SignedLog a) #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (SignedLog a) #

toConstr :: SignedLog a -> Constr #

dataTypeOf :: SignedLog a -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (SignedLog a)) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (SignedLog a)) #

gmapT :: (forall b. Data b => b -> b) -> SignedLog a -> SignedLog a #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SignedLog a -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SignedLog a -> r #

gmapQ :: (forall d. Data d => d -> u) -> SignedLog a -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> SignedLog a -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> SignedLog a -> m (SignedLog a) #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SignedLog a -> m (SignedLog a) #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SignedLog a -> m (SignedLog a) #

RealFloat a => Num (SignedLog a) Source # 
Instance details

Defined in Numeric.Log.Signed

(Ord a, Fractional a) => Ord (SignedLog a) Source # 
Instance details

Defined in Numeric.Log.Signed

(RealFloat a, Read a) => Read (SignedLog a) Source # 
Instance details

Defined in Numeric.Log.Signed

(RealFloat a, Ord a) => Real (SignedLog a) Source # 
Instance details

Defined in Numeric.Log.Signed

RealFloat a => RealFrac (SignedLog a) Source # 
Instance details

Defined in Numeric.Log.Signed

Methods

properFraction :: Integral b => SignedLog a -> (b, SignedLog a) #

truncate :: Integral b => SignedLog a -> b #

round :: Integral b => SignedLog a -> b #

ceiling :: Integral b => SignedLog a -> b #

floor :: Integral b => SignedLog a -> b #

(Show a, RealFloat a, Eq a, Fractional a) => Show (SignedLog a) Source # 
Instance details

Defined in Numeric.Log.Signed

Generic (SignedLog a) Source # 
Instance details

Defined in Numeric.Log.Signed

Associated Types

type Rep (SignedLog a) :: Type -> Type #

Methods

from :: SignedLog a -> Rep (SignedLog a) x #

to :: Rep (SignedLog a) x -> SignedLog a #

type Rep (SignedLog a) Source # 
Instance details

Defined in Numeric.Log.Signed

type Rep (SignedLog a) = D1 (MetaData "SignedLog" "Numeric.Log.Signed" "log-domain-0.13-inplace" False) (C1 (MetaCons "SLExp" PrefixI True) (S1 (MetaSel (Just "signSL") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Bool) :*: S1 (MetaSel (Just "lnSL") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 a)))