Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ mdivide_left_tri() [5/5]

template<Eigen::UpLoType TriView, typename T1 , typename T2 , require_all_matrix_t< T1, T2 > * = nullptr, require_any_var_matrix_t< T1, T2 > * = nullptr>
auto stan::math::mdivide_left_tri ( T1 &&  A,
T2 &&  B 
)
inline

Returns the solution of the system Ax=B when A is triangular.

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
TriViewSpecifies whether A is upper (Eigen::Upper) or lower triangular (Eigen::Lower).
T1type of the triangular matrix
T2type of the right-hand side matrix or vector
Parameters
ATriangular matrix.
BRight hand side matrix or vector.
Returns
x = A^-1 B, solution of the linear system.
Exceptions
std::domain_errorif A is not square or B does not have as many rows as A has columns.

Definition at line 346 of file mdivide_left_tri.hpp.