Copyright | (c) Michal Konecny |
---|---|
License | BSD3 |
Maintainer | mikkonecny@gmail.com |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell98 |
Documentation
class HasNorm a where Source #
getNormLog :: a -> NormLog Source #
For a value x
, return NormBits j
where j
is close
to the smallest i
with |x| <= 2^i
.
If x == 0
then return NormZero
.
invertNormLog :: NormLog -> NormLog Source #