summaryrefslogtreecommitdiff
path: root/lib/Data/Packed/Internal/Matrix.hs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Data/Packed/Internal/Matrix.hs')
-rw-r--r--lib/Data/Packed/Internal/Matrix.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Data/Packed/Internal/Matrix.hs b/lib/Data/Packed/Internal/Matrix.hs
index c4491fb..29aba51 100644
--- a/lib/Data/Packed/Internal/Matrix.hs
+++ b/lib/Data/Packed/Internal/Matrix.hs
@@ -160,7 +160,7 @@ fromRows vs = case compatdim (map dim vs) of
160-- | extracts the rows of a matrix as a list of vectors 160-- | extracts the rows of a matrix as a list of vectors
161toRows :: Element t => Matrix t -> [Vector t] 161toRows :: Element t => Matrix t -> [Vector t]
162toRows m = toRows' 0 where 162toRows m = toRows' 0 where
163 v = flatten $ m 163 v = flatten m
164 r = rows m 164 r = rows m
165 c = cols m 165 c = cols m
166 toRows' k | k == r*c = [] 166 toRows' k | k == r*c = []