fix Eigen's trsv for complexes

This commit is contained in:
Gael Guennebaud 2010-11-05 14:36:34 +01:00
parent 0e30c4ae3f
commit 572b5585e3

View File

@ -87,7 +87,7 @@ struct triangular_solve_vector<LhsScalar, RhsScalar, Index, OnTheLeft, Mode, Con
rhs[i] -= (cjLhs.row(i).segment(s,k).transpose().cwiseProduct(Map<Matrix<RhsScalar,Dynamic,1> >(rhs+s,k))).sum();
if(!(Mode & UnitDiag))
rhs[i] /= lhs(i,i);
rhs[i] /= cjLhs(i,i);
}
}
}