summaryrefslogtreecommitdiff
path: root/lib/Numeric/LinearAlgebra/Instances.hs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Numeric/LinearAlgebra/Instances.hs')
-rw-r--r--lib/Numeric/LinearAlgebra/Instances.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Numeric/LinearAlgebra/Instances.hs b/lib/Numeric/LinearAlgebra/Instances.hs
index ffc4f17..1f8b5a0 100644
--- a/lib/Numeric/LinearAlgebra/Instances.hs
+++ b/lib/Numeric/LinearAlgebra/Instances.hs
@@ -203,7 +203,7 @@ instance (Linear Vector a, Floating (Vector a), Fractional (Matrix a)) => Floati
203--------------------------------------------------------------- 203---------------------------------------------------------------
204 204
205instance (Storable a, Num (Vector a)) => Monoid (Vector a) where 205instance (Storable a, Num (Vector a)) => Monoid (Vector a) where
206 mempty = 0 { dim = 0 } 206 mempty = 0 { idim = 0 }
207 mappend a b = mconcat [a,b] 207 mappend a b = mconcat [a,b]
208 mconcat = j . filter ((>0).dim) 208 mconcat = j . filter ((>0).dim)
209 where j [] = mempty 209 where j [] = mempty