For a nonsingular lower or upper triangular square matrix $A$, how to solve such linear system in Eigen:

$$A x = b$$


1 Answer 1


As documented here:

x = A.triangularView<Upper>().solve(b);


x = A.triangularView<Lower>().solve(b);
  • $\begingroup$ thank you for answering so many of my Eigen related questions! $\endgroup$ Commented Feb 10, 2014 at 9:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.