summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMike Ledger <eleventynine@gmail.com>2013-06-24 21:32:28 +1000
committerMike Ledger <eleventynine@gmail.com>2013-06-24 21:32:28 +1000
commit3c3760017f01a54f95f609f05f4e0e25c6fdf88f (patch)
treed59f2cbd9eb3d353632c4ac143f41347cd24fb97 /lib
parentaea7e431c955bcde5527906872175c2051742a78 (diff)
improve haddocks for flatten
Diffstat (limited to 'lib')
-rw-r--r--lib/Data/Packed/Internal/Matrix.hs10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/Data/Packed/Internal/Matrix.hs b/lib/Data/Packed/Internal/Matrix.hs
index ce2720e..8158679 100644
--- a/lib/Data/Packed/Internal/Matrix.hs
+++ b/lib/Data/Packed/Internal/Matrix.hs
@@ -132,12 +132,10 @@ mat a f =
132 let m g = do 132 let m g = do
133 g (fi (rows a)) (fi (cols a)) p 133 g (fi (rows a)) (fi (cols a)) p
134 f m 134 f m
135 135-- | Creates a vector by concatenation of rows. If the matrix is ColumnMajor, this operation requires a transpose.
136{- | Creates a vector by concatenation of rows 136--
137 137-- @\> flatten ('ident' 3)
138@\> flatten ('ident' 3) 138-- 9 |> [1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0]@
1399 |> [1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0]@
140-}
141flatten :: Element t => Matrix t -> Vector t 139flatten :: Element t => Matrix t -> Vector t
142flatten = xdat . cmat 140flatten = xdat . cmat
143 141