DOC: matrix flatten docstring