log-domain 0.9 → 0.9.1
raw patch · 3 files changed
+6/−2 lines, 3 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Numeric.Log: instance Typeable1 Log
+ Numeric.Log: instance Typeable Log
Files
- CHANGELOG.markdown +4/−0
- log-domain.cabal +1/−1
- src/Numeric/Log.hs +1/−1
CHANGELOG.markdown view
@@ -1,3 +1,7 @@+0.9.1+-----+* Fixed subtraction.+ 0.8 --- * Updated to `comonad` and `semigroupoids` 4.
log-domain.cabal view
@@ -1,6 +1,6 @@ name: log-domain category: Numeric-version: 0.9+version: 0.9.1 license: BSD3 cabal-version: >= 1.8 license-file: LICENSE
src/Numeric/Log.hs view
@@ -200,7 +200,7 @@ {-# INLINE (+) #-} Exp a - Exp b | a == negInf && b == negInf = Exp negInf- | otherwise = Exp (a + log1mexp (b - a))+ | otherwise = Exp (a + log1mexp (a - b)) {-# INLINE (-) #-} signum (Exp a) | a == negInf = 0