summaryrefslogtreecommitdiff
path: root/lib/Data/Packed
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Data/Packed')
-rw-r--r--lib/Data/Packed/Internal/Matrix.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Data/Packed/Internal/Matrix.hs b/lib/Data/Packed/Internal/Matrix.hs
index 605a6f3..f63ee52 100644
--- a/lib/Data/Packed/Internal/Matrix.hs
+++ b/lib/Data/Packed/Internal/Matrix.hs
@@ -142,7 +142,8 @@ createMatrix order r c = do
142 p <- createVector (r*c) 142 p <- createVector (r*c)
143 return (matrixFromVector order c p) 143 return (matrixFromVector order c p)
144 144
145{- | Creates a matrix from a vector by grouping the elements in rows with the desired number of columns. 145{- | Creates a matrix from a vector by grouping the elements in rows with the desired number of columns. (GNU-Octave groups by columns. To do it you can define @reshapeF r = trans . reshape r@
146where r is the desired number of rows.)
146 147
147@\> reshape 4 ('fromList' [1..12]) 148@\> reshape 4 ('fromList' [1..12])
148(3><4) 149(3><4)