cdar-mBound-0.1.0.4: Exact real arithmetic using Centred Dyadic Approximations
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.CDAR.Classes

Description

Defines the Scalable type class.

Synopsis

Documentation

class Scalable a where Source #

Scalable allows scaling numerical data types by powers of 2.

Methods

scale :: a -> Int -> a Source #

Instances

Instances details
Scalable Integer Source #

The Integer instance.

Instance details

Defined in Data.CDAR.Classes

Methods

scale :: Integer -> Int -> Integer Source #

Scalable Dyadic Source # 
Instance details

Defined in Data.CDAR.Dyadic

Methods

scale :: Dyadic -> Int -> Dyadic Source #

Scalable CR Source # 
Instance details

Defined in Data.CDAR.Approx

Methods

scale :: CR -> Int -> CR Source #

Scalable Approx Source # 
Instance details

Defined in Data.CDAR.Approx

Methods

scale :: Approx -> Int -> Approx Source #