log-domain-0.11: Log-domain arithmetic

Copyright(c) Edward Kmett 2013-2015
LicenseBSD3
MaintainerEdward Kmett <ekmett@gmail.com>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellTrustworthy
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 # 

Methods

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

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

(RealFloat a, Precise a) => Floating (SignedLog a) Source # 
(Precise a, RealFloat a) => Fractional (SignedLog a) Source # 
Data a => Data (SignedLog a) Source # 

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) #

(Precise a, RealFloat a) => Num (SignedLog a) Source # 
(Ord a, Fractional a) => Ord (SignedLog a) Source # 
(Precise a, RealFloat a, Fractional a, Read a) => Read (SignedLog a) Source # 
(Precise a, RealFloat a, Ord a) => Real (SignedLog a) Source # 
(Precise a, RealFloat a) => RealFrac (SignedLog a) Source # 

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 # 
Generic (SignedLog a) Source # 

Associated Types

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

Methods

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

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

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