fix #74: sparse triangular solver for lower/row-major matrices

This commit is contained in:
Gael Guennebaud
2009-12-14 10:20:35 +01:00
parent 72fc81dd9d
commit b581cb870c
2 changed files with 12 additions and 1 deletions

View File

@@ -43,8 +43,11 @@ struct ei_solve_triangular_selector<Lhs,Rhs,LowerTriangular,RowMajor|IsSparse>
{
lastVal = it.value();
lastIndex = it.index();
if(lastIndex == i)
break;
tmp -= lastVal * other.coeff(lastIndex,col);
}
if (Lhs::Flags & UnitDiagBit)
other.coeffRef(i,col) = tmp;
else