hmatrix-static 0.1 → 0.2
raw patch · 2 files changed
+5/−5 lines, 2 filesdep ~haskell-src-metadep ~hmatrixPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: haskell-src-meta, hmatrix
API changes (from Hackage documentation)
Files
- Data/Packed/Static/Vector.hs +2/−2
- hmatrix-static.cabal +3/−3
Data/Packed/Static/Vector.hs view
@@ -191,7 +191,7 @@ [$vec| 2.0, 4.0, 6.0 |]@ -} liftVector :: (Storable a, Storable b) => (a -> b) -> Vector n a -> Vector n b-liftVector f = Vector . H.liftVector f . unVector+liftVector f = Vector . H.mapVector f . unVector --- note: this requires they are of the same size, whereas hmatrix allows --- different sizes; it uses the minimum size.@@ -202,7 +202,7 @@ -} liftVector2 :: (Storable a, Storable b, Storable c) => (a -> b -> c) -> Vector n a -> Vector n b -> Vector n c-liftVector2 f v1 v2 = Vector $ H.liftVector2 f (unVector v1) (unVector v2)+liftVector2 f v1 v2 = Vector $ H.zipVector f (unVector v1) (unVector v2) instance (Storable e, Show e) => Show (Vector n e) where show v = "[$vec| " ++ intercalate ", " (map show $ toList v) ++ " |]"
hmatrix-static.cabal view
@@ -1,5 +1,5 @@ Name: hmatrix-static-Version: 0.1+Version: 0.2 Synopsis: hmatrix with vector and matrix sizes encoded in types License: GPL License-file: LICENSE@@ -49,5 +49,5 @@ Rank2Types, TypeFamilies, TypeOperators, EmptyDataDecls, TemplateHaskell - Build-Depends: base==4.*, hmatrix==0.5.*, tfp==0.2.*, array==0.2.*, - haskell-src-meta>=0.0.3.1&&<0.0.4, parsec==3.*, template-haskell+ Build-Depends: base==4.*, hmatrix>=0.5&&<0.7, tfp==0.2.*, array==0.2.*, + haskell-src-meta>=0.0.3.1&&<0.0.7, parsec==3.*, template-haskell