mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-13 20:26:03 +08:00
Quick fix in order to be custom-scalar friendly.
This commit is contained in:
parent
5f11db695b
commit
acb82c7f16
@ -384,7 +384,7 @@ class SparseMatrix
|
|||||||
eigen_assert( (m_outerIndex[outer+1]-m_outerIndex[outer]==0 || m_data.index(m_data.size()-1)<inner) && "Invalid ordered insertion (invalid inner index)");
|
eigen_assert( (m_outerIndex[outer+1]-m_outerIndex[outer]==0 || m_data.index(m_data.size()-1)<inner) && "Invalid ordered insertion (invalid inner index)");
|
||||||
Index p = m_outerIndex[outer+1];
|
Index p = m_outerIndex[outer+1];
|
||||||
++m_outerIndex[outer+1];
|
++m_outerIndex[outer+1];
|
||||||
m_data.append(0, inner);
|
m_data.append(Scalar(0), inner);
|
||||||
return m_data.value(p);
|
return m_data.value(p);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -394,7 +394,7 @@ class SparseMatrix
|
|||||||
{
|
{
|
||||||
Index p = m_outerIndex[outer+1];
|
Index p = m_outerIndex[outer+1];
|
||||||
++m_outerIndex[outer+1];
|
++m_outerIndex[outer+1];
|
||||||
m_data.append(0, inner);
|
m_data.append(Scalar(0), inner);
|
||||||
return m_data.value(p);
|
return m_data.value(p);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user