numhask-array 0.9.1 → 0.9.2
raw patch · 3 files changed
+49/−76 lines, 3 filesdep ~numhask
Dependency ranges changed: numhask
Files
- ChangeLog.md +4/−0
- numhask-array.cabal +45/−62
- src/NumHask/Array/Fixed.hs +0/−14
ChangeLog.md view
@@ -1,3 +1,7 @@+0.9.2+==+* fixes for numhask-0.9+ 0.9.1 === * GHC 9.0.1 support
numhask-array.cabal view
@@ -1,74 +1,57 @@-cabal-version: 2.4-name: numhask-array-version: 0.9.1-synopsis:- Multi-dimensional arrays.+cabal-version: 2.4+name: numhask-array+version: 0.9.2+synopsis: Multi-dimensional arrays. description:- This package provides an interface into the [numhask](https://hackage.haskell.org/package/numhask) API, and both type- and value-level shape manipulation routines.- .- == Usage- .- >>> {-# LANGUAGE RebindableSyntax #-}- >>> import NumHask.Prelude- >>> import NumHask.Array- .- In situations where shape is only known at runtime, a clear module configuration is:- .- >>> import NumHask.Array.Shape- >>> import qualified NumHask.Array.Fixed as F- >>> import qualified NumHask.Array.Dynamic as D+ This package provides an interface into the [numhask](https://hackage.haskell.org/package/numhask) API, and both type- and value-level shape manipulation routines.+ .+ == Usage+ .+ >>> {-# LANGUAGE RebindableSyntax #-}+ >>> import NumHask.Prelude+ >>> import NumHask.Array+ .+ In situations where shape is only known at runtime, a clear module configuration is:+ .+ >>> import NumHask.Array.Shape+ >>> import qualified NumHask.Array.Fixed as F+ >>> import qualified NumHask.Array.Dynamic as D -category:- project-homepage:- https://github.com/tonyday567/numhask-array#readme-bug-reports:- https://github.com/tonyday567/numhask-array/issues-author:- Tony Day-maintainer:- tonyday567@gmail.com-copyright:- Tony Day-license:- BSD-3-Clause-license-file:- LICENSE-tested-with:- GHC ==8.8.4- || ==8.10.4- || ==9.0.1- || ==9.2.0.20210821-build-type:- Simple-extra-source-files:- ChangeLog.md+category: project+homepage: https://github.com/tonyday567/numhask-array#readme+bug-reports: https://github.com/tonyday567/numhask-array/issues+author: Tony Day+maintainer: tonyday567@gmail.com+copyright: Tony Day+license: BSD-3-Clause+license-file: LICENSE+tested-with: GHC ==8.8.4 || ==8.10.7 || ==9.2.1+build-type: Simple+extra-source-files: ChangeLog.md+ source-repository head- type:- git- location:- https://github.com/tonyday567/numhask-array+ type: git+ location: https://github.com/tonyday567/numhask-array+ library- hs-source-dirs:- src+ hs-source-dirs: src default-extensions: ghc-options:- -Wall- -Wcompat- -Wincomplete-record-updates- -Wincomplete-uni-patterns- -Wredundant-constraints- -fwrite-ide-info+ -Wall -Wcompat -Wincomplete-record-updates+ -Wincomplete-uni-patterns -Wredundant-constraints -fwrite-ide-info -hiedir=.hie+ build-depends:- base >=4.11 && <5,- adjunctions >=4.0 && <5,- distributive >=0.4 && <0.7,- numhask >= 0.8 && <0.9,- vector >=0.10 && <0.13,+ , adjunctions >=4.0 && <5+ , base >=4.11 && <5+ , distributive >=0.4 && <0.7+ , numhask ^>=0.9+ , vector >=0.10 && <0.13+ exposed-modules: NumHask.Array- NumHask.Array.Fixed NumHask.Array.Dynamic+ NumHask.Array.Fixed NumHask.Array.Shape- default-language: Haskell2010++ default-language: Haskell2010
src/NumHask/Array/Fixed.hs view
@@ -195,9 +195,6 @@ (.*) s r = fmap (s *) r {-# INLINE (.*) #-} - (*.) r s = fmap (* s) r- {-# INLINE (*.) #-}- instance (HasShape s, Additive a) => AdditiveAction (Array s a) a@@ -205,9 +202,6 @@ (.+) s r = fmap (s +) r {-# INLINE (.+) #-} - (+.) r s = fmap (+ s) r- {-# INLINE (+.) #-}- instance (HasShape s, Subtractive a) => SubtractiveAction (Array s a) a@@ -215,9 +209,6 @@ (.-) s r = fmap (s -) r {-# INLINE (.-) #-} - (-.) r s = fmap (\x -> x - s) r- {-# INLINE (-.) #-}- instance (HasShape s, Divisive a) => DivisiveAction (Array s a) a@@ -225,9 +216,6 @@ (./) s r = fmap (s /) r {-# INLINE (./) #-} - (/.) r s = fmap (/ s) r- {-# INLINE (/.) #-}- instance (HasShape s, JoinSemiLattice a) => JoinSemiLattice (Array s a) where (\/) = liftR2 (\/) @@ -236,8 +224,6 @@ instance (HasShape s, Subtractive a, Epsilon a) => Epsilon (Array s a) where epsilon = singleton epsilon-- nearZero (Array a) = all nearZero a instance ( HasShape s