Skip to content
This repository was archived by the owner on Dec 31, 2023. It is now read-only.

Commit 7718514

Browse files
authoredMay 27, 2022
Merge pull request #1 from tonyday567/sparks
numhask-0.10 perf-0.10
2 parents 8ad26df + cf6874e commit 7718514

File tree

3 files changed

+3
-14
lines changed

3 files changed

+3
-14
lines changed
 

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ TAGS
77
/.ghc.environment.x86_64-darwin-8.10.4
88
/.hie/
99
/cabal.project.local*
10+
/.ghc.environment.x86_64-darwin-8.10.7

‎numhask-hmatrix.cabal

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ library
3030
build-depends:
3131
, base >=4.11 && <5
3232
, hmatrix ^>=0.20
33-
, numhask ^>=0.8.1
34-
, numhask-array ^>=0.9
33+
, numhask >=0.8.1 && <0.11
34+
, numhask-array >=0.9 && <0.11
3535
, vector >=0.10 && <0.13
3636

3737
exposed-modules: NumHask.Array.HMatrix

‎src/NumHask/Array/HMatrix.hs

-12
Original file line numberDiff line numberDiff line change
@@ -163,39 +163,27 @@ instance
163163
(.*) s (Array r) = Array $ H.cmap (s *) r
164164
{-# INLINE (.*) #-}
165165

166-
(*.) (Array r) s = Array $ H.cmap (*s) r
167-
{-# INLINE (*.) #-}
168-
169166
instance
170167
(HasShape s, Additive a, H.Container H.Vector a, Num a) =>
171168
AdditiveAction (Array s a) a
172169
where
173170
(.+) s (Array r) = Array $ H.cmap (s +) r
174171
{-# INLINE (.+) #-}
175172

176-
(+.) (Array r) s = Array $ H.cmap (+s) r
177-
{-# INLINE (+.) #-}
178-
179173
instance
180174
(HasShape s, Subtractive a, H.Container H.Vector a, Num a) =>
181175
SubtractiveAction (Array s a) a
182176
where
183177
(.-) s (Array r) = Array $ H.cmap (s -) r
184178
{-# INLINE (.-) #-}
185179

186-
(-.) (Array r) s = Array $ H.cmap (\x -> x - s) r
187-
{-# INLINE (-.) #-}
188-
189180
instance
190181
(HasShape s, Divisive a, H.Container H.Vector a, Num a) =>
191182
DivisiveAction (Array s a) a
192183
where
193184
(./) s (Array r) = Array $ H.cmap (s /) r
194185
{-# INLINE (./) #-}
195186

196-
(/.) (Array r) s = Array $ H.cmap (/ s) r
197-
{-# INLINE (/.) #-}
198-
199187
-- | from flat list
200188
instance
201189
( HasShape s,

0 commit comments

Comments
 (0)
This repository has been archived.