mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
Fix inner iterator on an outer-vector
This commit is contained in:
parent
5f1eedd655
commit
df604e4f49
@ -523,6 +523,7 @@ namespace internal {
|
|||||||
while(m_outerPos<m_end)
|
while(m_outerPos<m_end)
|
||||||
{
|
{
|
||||||
m_outerPos++;
|
m_outerPos++;
|
||||||
|
if(m_outerPos==m_end) break;
|
||||||
typename XprType::InnerIterator it(m_block.m_matrix, m_outerPos);
|
typename XprType::InnerIterator it(m_block.m_matrix, m_outerPos);
|
||||||
// search for the key m_innerIndex in the current outer-vector
|
// search for the key m_innerIndex in the current outer-vector
|
||||||
while(it && it.index() < m_innerIndex) ++it;
|
while(it && it.index() < m_innerIndex) ++it;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user