summaryrefslogtreecommitdiff
path: root/packages/base/src/Internal/Matrix.hs
diff options
context:
space:
mode:
authorAlberto Ruiz <aruiz@um.es>2015-06-30 12:30:57 +0200
committerAlberto Ruiz <aruiz@um.es>2015-06-30 12:30:57 +0200
commit4730254f061832591d4a44c86d3bdfa4620f4322 (patch)
tree3499347e0dfe8edb778101f6d124333a21f5b67e /packages/base/src/Internal/Matrix.hs
parentb9329d636d19f6a26da1cf1fd7e8d7cbd0b04cce (diff)
CTrans class to preserve slices in real transposes
Diffstat (limited to 'packages/base/src/Internal/Matrix.hs')
-rw-r--r--packages/base/src/Internal/Matrix.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/base/src/Internal/Matrix.hs b/packages/base/src/Internal/Matrix.hs
index a789cae..df56207 100644
--- a/packages/base/src/Internal/Matrix.hs
+++ b/packages/base/src/Internal/Matrix.hs
@@ -241,7 +241,7 @@ createMatrix ord r c = do
241 p <- createVector (r*c) 241 p <- createVector (r*c)
242 return (matrixFromVector ord r c p) 242 return (matrixFromVector ord r c p)
243 243
244{- | 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@ 244{- | 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 = tr' . reshape r@
245where r is the desired number of rows.) 245where r is the desired number of rows.)
246 246
247>>> reshape 4 (fromList [1..12]) 247>>> reshape 4 (fromList [1..12])