limp-0.3.2.1: representation of Integer Linear Programs

Safe HaskellNone
LanguageHaskell2010

Numeric.Limp.Rep.IntDouble

Description

Fixed/floating precision number representation

Synopsis

Documentation

data IntDouble Source

A representation that uses native 64-bit ints and 64-bit doubles. Really, this should be 32-bit ints.

Instances

Rep IntDouble 
Enum (Z IntDouble) 
Enum (R IntDouble) 
Eq (Z IntDouble) 
Eq (R IntDouble) 
Fractional (R IntDouble) 
Integral (Z IntDouble) 
Num (Z IntDouble) 
Num (R IntDouble) 
Ord (Z IntDouble) 
Ord (R IntDouble) 
Real (Z IntDouble) 
Real (R IntDouble) 
RealFrac (R IntDouble) 
Show (Z IntDouble)

Define show manually, so we can strip out the Z and R prefixes.

Show (R IntDouble) 
data Z IntDouble = Z Int 
data R IntDouble = R Double 

unwrapR :: R IntDouble -> Double Source

Convert a wrapped (R IntDouble) to an actual Double.