Permalink
Browse files

Bump ad dependency.

  • Loading branch information...
1 parent 40d2c69 commit 63482a06403028684d35be3ccba6046632a524c3 @bjornbm committed Dec 23, 2012
View
4 Numeric/Units/Dimensional/AD.hs
@@ -7,7 +7,7 @@ module Numeric.Units.Dimensional.AD (diff, Lift (lift)) where
import Numeric.Units.Dimensional (Dimensional (Dimensional), Quantity, Div)
import Numeric.AD.Types (AD, Mode)
-import qualified Numeric.AD.Types (lift)
+import qualified Numeric.AD.Types (auto)
import qualified Numeric.AD (diff)
-- | Unwrap a Dimensional's numeric representation.
@@ -29,4 +29,4 @@ class Lift w where
lift :: (Num a, Mode t) => w a -> w (t a)
instance Lift (Dimensional v d)
- where lift = Dimensional . Numeric.AD.Types.lift . undim
+ where lift = Dimensional . Numeric.AD.Types.auto . undim
View
4 Numeric/Units/Dimensional/LinearAlgebra/VectorAD.hs
@@ -10,7 +10,7 @@ import Numeric.Units.Dimensional.LinearAlgebra.Vector (Vec (ListVec), MulD, DivD
import Numeric.Units.Dimensional.LinearAlgebra.HListExtras (HZipWith)
import Numeric.AD (diffF')
import Numeric.AD.Types (AD, Mode)
-import qualified Numeric.AD.Types (lift)
+import qualified Numeric.AD.Types (auto)
import Numeric.Units.Dimensional.AD
@@ -73,4 +73,4 @@ applyLinearAt f t (p,v) = diffV' (\t' -> f t' (lift p `elemAdd` scaleVec (t' - l
-- -------
-- | Lift the elements of a vector to 'AD.AD's.
-instance Lift (Vec ds) where lift (ListVec xs) = ListVec (map Numeric.AD.Types.lift xs)
+instance Lift (Vec ds) where lift (ListVec xs) = ListVec (map Numeric.AD.Types.auto xs)
View
2 dimensional-experimental.cabal
@@ -28,7 +28,7 @@ Build-Depends:
numtype,
HList >= 0.2.1,
numeric-quest,
- ad >= 1.5,
+ ad >= 3.2,
ieee754 >= 0.7.3
Exposed-Modules:

0 comments on commit 63482a0

Please sign in to comment.