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

◆ mdivide_right_tri()

template<Eigen::UpLoType TriView, typename EigMat1 , typename EigMat2 , require_all_eigen_t< EigMat1, EigMat2 > * = nullptr>
auto stan::math::mdivide_right_tri ( const EigMat1 &  b,
const EigMat2 &  A 
)
inline

Returns the solution of the system xA=b when A is triangular.

Template Parameters
TriViewSpecifies whether A is upper (Eigen::Upper) or lower triangular (Eigen::Lower).
EigMat1type of the right-hand side matrix or vector
EigMat2type of the triangular matrix
Parameters
ATriangular matrix. Specify upper or lower with TriView being Eigen::Upper or Eigen::Lower.
bRight hand side matrix or vector.
Returns
x = b A^-1, 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.

Definition at line 29 of file mdivide_right_tri.hpp.