Scythe-1.0.3
template<typename T , matrix_order O, matrix_style S>
std::ostream& scythe::operator<< ( std::ostream &  os,
const Matrix< T, O, S > &  M 
)

Write a Matrix to a stream.

Writes a matrix to an ostream in a column-aligned format. This operator is primarily intended for pretty-printing to the terminal and uses two passes in order to correctly align the output. If you wish to write a Matrix to disk, Matrix::save() is probably a better option.

Parameters:
osThe ostream to write to.
MThe Matrix to write out.
See also:
operator>>(std::istream& is, Matrix<T,O,S>& M)
Matrix::save()

References scythe::Matrix< T_type, ORDER, STYLE >::begin_f(), and scythe::Matrix< T_type, ORDER, STYLE >::end_f().