Skip to content
Snippets Groups Projects
Commit dcc57e1a authored by Tom Fischer's avatar Tom Fischer
Browse files

[MathLib] DenseMatrix::write() print the matrix dims, too.

parent b126a027
No related branches found
No related tags found
No related merge requests found
......@@ -276,6 +276,7 @@ template <typename FP_TYPE, typename IDX_TYPE>
void
DenseMatrix<FP_TYPE, IDX_TYPE>::write (std::ostream &out) const
{
out << _n_rows << " " << _n_cols << "\n";
for (IDX_TYPE i = 0; i < _n_rows; i++) {
for (IDX_TYPE j = 0; j < _n_cols; j++) {
out << _data[address(i, j)] << "\t";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment