From 3c3760017f01a54f95f609f05f4e0e25c6fdf88f Mon Sep 17 00:00:00 2001 From: Mike Ledger Date: Mon, 24 Jun 2013 21:32:28 +1000 Subject: improve haddocks for flatten --- lib/Data/Packed/Internal/Matrix.hs | 10 ++++------ 1 file 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 = let m g = do g (fi (rows a)) (fi (cols a)) p f m - -{- | Creates a vector by concatenation of rows - -@\> flatten ('ident' 3) -9 |> [1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0]@ --} +-- | Creates a vector by concatenation of rows. If the matrix is ColumnMajor, this operation requires a transpose. +-- +-- @\> flatten ('ident' 3) +-- 9 |> [1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0]@ flatten :: Element t => Matrix t -> Vector t flatten = xdat . cmat -- cgit v1.2.3