mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-14 04:35:57 +08:00
Introduce a compilation error when using the wrong InnerIterator type.
This commit is contained in:
parent
e70506dd8f
commit
07c5500d70
@ -887,6 +887,11 @@ class SparseMatrix<Scalar,_Options,_Index>::InnerIterator
|
|||||||
const Index m_outer;
|
const Index m_outer;
|
||||||
Index m_id;
|
Index m_id;
|
||||||
Index m_end;
|
Index m_end;
|
||||||
|
private:
|
||||||
|
// If you get here, then you're not using the right InnerIterator type, e.g.:
|
||||||
|
// SparseMatrix<double,RowMajor> A;
|
||||||
|
// SparseMatrix<double>::InnerIterator it(A,0);
|
||||||
|
template<typename T> InnerIterator(const SparseMatrixBase<T>&,Index outer);
|
||||||
};
|
};
|
||||||
|
|
||||||
template<typename Scalar, int _Options, typename _Index>
|
template<typename Scalar, int _Options, typename _Index>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user