aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/SparseCore/SparseSelfAdjointView.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2011-11-30 19:39:20 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2011-11-30 19:39:20 +0100
commit6b8d6887acb22f8c4d2c1a74de5c162e17bb9ae2 (patch)
tree1e4684cada87efea758bab5bc9940312aa8e7cfc /Eigen/src/SparseCore/SparseSelfAdjointView.h
parent00d4a360ba12b0efe818375f0d2e36f0eddffb25 (diff)
bug fix in SparseSelfAdjointTimeDenseProduct for empty rows or columns
Diffstat (limited to 'Eigen/src/SparseCore/SparseSelfAdjointView.h')
-rw-r--r--Eigen/src/SparseCore/SparseSelfAdjointView.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/SparseCore/SparseSelfAdjointView.h b/Eigen/src/SparseCore/SparseSelfAdjointView.h
index 0768b696a..0becb8073 100644
--- a/Eigen/src/SparseCore/SparseSelfAdjointView.h
+++ b/Eigen/src/SparseCore/SparseSelfAdjointView.h
@@ -229,7 +229,7 @@ class SparseSelfAdjointTimeDenseProduct
LhsInnerIterator i(m_lhs,j);
if (ProcessSecondHalf)
{
- while (i.index()<j) ++i;
+ while (i && i.index()<j) ++i;
if(i && i.index()==j)
{
dest.row(j) += i.value() * m_rhs.row(j);