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

◆ mdivide_left_tri() [1/4]

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

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
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 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
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 29 of file mdivide_left_tri.hpp.