Returns the solution of the system Ax=b when A is triangular.
Returns the solution of the system Ax=B when A is triangular.
- Template Parameters
-
| TriView | Specifies whether A is upper (Eigen::Upper) or lower triangular (Eigen::Lower). |
| T1 | type of the triangular matrix |
| T2 | type of the right-hand side matrix or vector |
- Parameters
-
| A | Triangular matrix. |
| b | Right hand side matrix or vector. |
- Returns
- x = A^-1 b, solution of the linear system.
- Exceptions
-
| std::domain_error | if A is not square or the rows of b don't match the size of A. |
This overload handles arguments where one of T1 or T2 are var_value<T> where T is an Eigen type. The other type can also be a var_value or it can be a matrix type that inherits from EigenBase
- Template Parameters
-
| TriView | Specifies whether A is upper (Eigen::Upper) or lower triangular (Eigen::Lower). |
| T1 | type of the triangular matrix |
| T2 | type of the right-hand side matrix or vector |
- Parameters
-
| A | Triangular matrix. |
| B | Right hand side matrix or vector. |
- Returns
- x = A^-1 B, solution of the linear system.
- Exceptions
-
| std::domain_error | if A is not square or B does not have as many rows as A has columns. |
Definition at line 29 of file mdivide_left_tri.hpp.