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

◆ mdivide_right() [3/3]

template<typename EigMat1 , typename EigMat2 , require_all_eigen_t< EigMat1, EigMat2 > * = nullptr, require_all_not_vt_fvar< EigMat1, EigMat2 > * = nullptr>
Eigen::Matrix< return_type_t< EigMat1, EigMat2 >, EigMat1::RowsAtCompileTime, EigMat2::ColsAtCompileTime > stan::math::mdivide_right ( const EigMat1 &  b,
const EigMat2 &  A 
)
inline

Returns the solution of the system xA=b.

Template Parameters
EigMat1type of the right-hand side matrix or vector
EigMat2type of the second matrix
Parameters
AMatrix.
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 28 of file mdivide_right.hpp.