Fix propagation of index type

(grafted from 0b1430ae10
)
This commit is contained in:
Gael Guennebaud
2014-02-13 23:58:28 +01:00
parent 76ee39485f
commit 6def9fd52b
4 changed files with 21 additions and 19 deletions

View File

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