mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Added a SparseVector class (not tested yet)
This commit is contained in:
@@ -415,13 +415,13 @@ class SparseMatrix<Scalar,_Flags>::InnerIterator
|
||||
m_start(m_id), m_end(m_matrix.m_outerIndex[outer+1])
|
||||
{}
|
||||
|
||||
InnerIterator& operator++() { m_id++; return *this; }
|
||||
inline InnerIterator& operator++() { m_id++; return *this; }
|
||||
|
||||
Scalar value() const { return m_matrix.m_data.value(m_id); }
|
||||
inline Scalar value() const { return m_matrix.m_data.value(m_id); }
|
||||
|
||||
int index() const { return m_matrix.m_data.index(m_id); }
|
||||
inline int index() const { return m_matrix.m_data.index(m_id); }
|
||||
|
||||
operator bool() const { return (m_id < m_end) && (m_id>=m_start); }
|
||||
inline operator bool() const { return (m_id < m_end) && (m_id>=m_start); }
|
||||
|
||||
protected:
|
||||
const SparseMatrix& m_matrix;
|
||||
|
||||
Reference in New Issue
Block a user