fix spasre triangular solve for row major lower matrices

This commit is contained in:
Gael Guennebaud
2009-12-14 10:25:21 +01:00
parent 9facdaf7b9
commit 7a9988ebb6
2 changed files with 11 additions and 1 deletions

View File

@@ -52,6 +52,8 @@ struct ei_sparse_solve_triangular_selector<Lhs,Rhs,Mode,LowerTriangular,RowMajor
{
lastVal = it.value();
lastIndex = it.index();
if(lastIndex==i)
break;
tmp -= lastVal * other.coeff(lastIndex,col);
}
if (Mode & UnitDiagBit)