flatten package:hmatrix

Creates a vector by concatenation of rows. If the matrix is ColumnMajor, this operation requires a transpose.
>>> flatten (ident 3)
[1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0]
it :: (Num t, Element t) => Vector t