Quick fix in order to be custom-scalar friendly.

This commit is contained in:
Pavel Holoborodko 2013-07-29 20:13:52 +09:00
parent 5f11db695b
commit acb82c7f16

View File

@ -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)");
Index p = m_outerIndex[outer+1];
++m_outerIndex[outer+1];
m_data.append(0, inner);
m_data.append(Scalar(0), inner);
return m_data.value(p);
}
@ -394,7 +394,7 @@ class SparseMatrix
{
Index p = m_outerIndex[outer+1];
++m_outerIndex[outer+1];
m_data.append(0, inner);
m_data.append(Scalar(0), inner);
return m_data.value(p);
}