use consistent StorageIndex types in SparseMatrix::Map

and `SparseMatrix::TransposedSparseMatrix`
This commit is contained in:
Erik Schultheis 2021-11-12 01:14:41 +02:00 committed by Erik Schultheis
parent 13954c4440
commit ca9c848679

View File

@ -110,7 +110,7 @@ class SparseMatrix
using Base::operator+=; using Base::operator+=;
using Base::operator-=; using Base::operator-=;
typedef MappedSparseMatrix<Scalar,Flags> Map; typedef MappedSparseMatrix<Scalar,Flags,StorageIndex> Map;
typedef Diagonal<SparseMatrix> DiagonalReturnType; typedef Diagonal<SparseMatrix> DiagonalReturnType;
typedef Diagonal<const SparseMatrix> ConstDiagonalReturnType; typedef Diagonal<const SparseMatrix> ConstDiagonalReturnType;
typedef typename Base::InnerIterator InnerIterator; typedef typename Base::InnerIterator InnerIterator;
@ -126,7 +126,7 @@ class SparseMatrix
typedef typename Base::IndexVector IndexVector; typedef typename Base::IndexVector IndexVector;
typedef typename Base::ScalarVector ScalarVector; typedef typename Base::ScalarVector ScalarVector;
protected: protected:
typedef SparseMatrix<Scalar,(Flags&~RowMajorBit)|(IsRowMajor?RowMajorBit:0)> TransposedSparseMatrix; typedef SparseMatrix<Scalar,(Flags&~RowMajorBit)|(IsRowMajor?RowMajorBit:0),StorageIndex> TransposedSparseMatrix;
Index m_outerSize; Index m_outerSize;
Index m_innerSize; Index m_innerSize;