Flatten array to one dimension.
See also numpy.ndarray.flatten().
numpy.ndarray.flatten()
treams.TMatrixC.diagonal
treams.TMatrixC.from_array