DOC: matrix flatten docstring
DOC: use m for matrix instead of a for array
DOC: clarify matrix flatten docstring
Merge pull request #4931 from argriffing/matrix-docstrings

DOC: matrix flatten docstring