5
$\begingroup$

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

$$A x = b$$

$\endgroup$

1 Answer 1

6
$\begingroup$

As documented here:

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

or

x = A.triangularView<Lower>().solve(b);
$\endgroup$
1
  • $\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.