2
$\begingroup$

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

$$A x = b$$

$\endgroup$
3
$\begingroup$

As documented here:

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

or

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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