aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src
diff options
context:
space:
mode:
authorGravatar Pavel Holoborodko <pavel@holoborodko.com>2013-07-29 20:13:52 +0900
committerGravatar Pavel Holoborodko <pavel@holoborodko.com>2013-07-29 20:13:52 +0900
commitacb82c7f1638389ac53b68c7db3a4fd8f6a92098 (patch)
tree3ffec5309b5942b8683a9becc722a596e63e3297 /Eigen/src
parent5f11db695b74db219e0d06682728c9eda90cac5c (diff)
Quick fix in order to be custom-scalar friendly.
Diffstat (limited to 'Eigen/src')
-rw-r--r--Eigen/src/SparseCore/SparseMatrix.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h
index adceafe18..970c6be71 100644
--- a/Eigen/src/SparseCore/SparseMatrix.h
+++ b/Eigen/src/SparseCore/SparseMatrix.h
@@ -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);
}