diff options
Diffstat (limited to 'lib/Data/Packed/Internal')
-rw-r--r-- | lib/Data/Packed/Internal/Matrix.hs | 2 |
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 |
161 | toRows :: Element t => Matrix t -> [Vector t] | 161 | toRows :: Element t => Matrix t -> [Vector t] |
162 | toRows m = toRows' 0 where | 162 | toRows 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 = [] |