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

◆ mdivide_left_spd() [1/4]

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

Returns the solution of the system Ax=b where A is symmetric positive definite.

Template Parameters
EigMat1type of the first matrix
EigMat2type of the right-hand side matrix or vector
Parameters
AMatrix.
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.

Definition at line 30 of file mdivide_left_spd.hpp.