diff options
Diffstat (limited to 'lib/Numeric/LinearAlgebra/Instances.hs')
-rw-r--r-- | lib/Numeric/LinearAlgebra/Instances.hs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/Numeric/LinearAlgebra/Instances.hs b/lib/Numeric/LinearAlgebra/Instances.hs index 67496f2..b17da5a 100644 --- a/lib/Numeric/LinearAlgebra/Instances.hs +++ b/lib/Numeric/LinearAlgebra/Instances.hs | |||
@@ -25,7 +25,7 @@ import Data.Packed.Matrix | |||
25 | import Complex | 25 | import Complex |
26 | import Data.List(transpose,intersperse) | 26 | import Data.List(transpose,intersperse) |
27 | import Foreign(Storable) | 27 | import Foreign(Storable) |
28 | import Data.Monoid | 28 | -- import Data.Monoid |
29 | import Data.Packed.Internal.Vector | 29 | import Data.Packed.Internal.Vector |
30 | -- import Control.Parallel.Strategies | 30 | -- import Control.Parallel.Strategies |
31 | 31 | ||
@@ -182,12 +182,12 @@ instance (Linear Vector a, Floating (Vector a), Fractional (Matrix a)) => Floati | |||
182 | 182 | ||
183 | --------------------------------------------------------------- | 183 | --------------------------------------------------------------- |
184 | 184 | ||
185 | instance (Storable a, Num (Vector a)) => Monoid (Vector a) where | 185 | -- instance (Storable a, Num (Vector a)) => Monoid (Vector a) where |
186 | mempty = 0 { idim = 0 } | 186 | -- mempty = 0 { idim = 0 } |
187 | mappend a b = mconcat [a,b] | 187 | -- mappend a b = mconcat [a,b] |
188 | mconcat = j . filter ((>0).dim) | 188 | -- mconcat = j . filter ((>0).dim) |
189 | where j [] = mempty | 189 | -- where j [] = mempty |
190 | j l = join l | 190 | -- j l = join l |
191 | 191 | ||
192 | --------------------------------------------------------------- | 192 | --------------------------------------------------------------- |
193 | 193 | ||