fix bug #391: improper stream output for uncompressed mode, also avoid double debugging outputs for column major matrices

This commit is contained in:
Gael Guennebaud
2011-12-20 18:31:00 +01:00
parent 6f92b75874
commit 7e866c447f
2 changed files with 23 additions and 8 deletions

View File

@@ -308,7 +308,7 @@ template<typename Derived> class SparseMatrixBase : public EigenBase<Derived>
else
{
SparseMatrix<Scalar, RowMajorBit> trans = m.derived();
s << trans;
s << static_cast<const SparseMatrixBase<SparseMatrix<Scalar, RowMajorBit> >&>(trans);
}
}
return s;