numhask-array 0.5.0.0 → 0.5.1
raw patch · 5 files changed
+8/−20 lines, 5 filesdep ~numhask
Dependency ranges changed: numhask
Files
- numhask-array.cabal +2/−2
- src/NumHask/Array/Fixed.hs +1/−1
- src/NumHask/Array/HMatrix.hs +1/−13
- stack.yaml +3/−3
- test/test.hs +1/−1
numhask-array.cabal view
@@ -1,5 +1,5 @@ name: numhask-array-version: 0.5.0.0+version: 0.5.1 synopsis: n-dimensional arrays description:@@ -53,7 +53,7 @@ , adjunctions >=4.0 && <5 , deepseq >=1.4.2.0 && <2 , distributive >=0.4 && <0.7- , numhask >= 0.3.1 && <0.4+ , numhask >= 0.3.1 && <0.5 , numhask-prelude >=0.3 && <0.4 , protolude >=0.2 && <0.3 , vector >=0.10 && <0.13
src/NumHask/Array/Fixed.hs view
@@ -83,7 +83,7 @@ import GHC.TypeLits import qualified NumHask.Array.Dynamic as D import NumHask.Array.Shape-import NumHask.Prelude as P hiding (identity, outer, transpose)+import NumHask.Prelude as P hiding (identity, transpose) -- $setup -- >>> :set -XDataKinds
src/NumHask/Array/HMatrix.hs view
@@ -148,19 +148,7 @@ type instance Actor (Array s a) = a -instance- ( HasShape s,- P.Distributive a,- CommutativeRing a,- Semiring a,- H.Container H.Vector a,- Num (H.Vector a),- Num a- ) =>- Hilbert (Array s a)- where- (<.>) (Array a) (Array b) = H.sumElements $ H.liftMatrix2 (Prelude.*) a b- {-# INLINE (<.>) #-}+-- (<.>) (Array a) (Array b) = H.sumElements $ H.liftMatrix2 (Prelude.*) a b instance ( HasShape s,
stack.yaml view
@@ -4,8 +4,8 @@ - . extra-deps:- - numhask-0.3.1- - numhask-prelude-0.3.2- - numhask-hedgehog-0.3.1+ - numhask-0.4.0+ - numhask-prelude-0.3.3+ - numhask-hedgehog-0.3.2 - numhask-space-0.3.0 - tdigest-0.2.1
test/test.hs view
@@ -21,7 +21,7 @@ where n = product $ shapeVal $ toShape @r -genARational :: forall a m r. (H.MonadGen m, HasShape r, Field a, Subtractive a, ToRatio a Integer, FromRatio a Integer) => m (Array (r :: [Nat]) a)+genARational :: forall a m r. (H.MonadGen m, HasShape r, Field a, ToRatio a Integer, FromRatio a Integer) => m (Array (r :: [Nat]) a) genARational = fromList <$> replicateM (fromIntegral n) negUniform where n = product $ shapeVal $ toShape @r