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

◆ mdivide_left_ldlt() [2/3]

template<typename T , typename EigMat , require_eigen_t< EigMat > * = nullptr, require_all_not_st_var< T, EigMat > * = nullptr, require_any_not_t< std::is_arithmetic< value_type_t< T > >, is_fvar< value_type_t< EigMat > > > * = nullptr>
Eigen::Matrix< return_type_t< T, EigMat >, Eigen::Dynamic, EigMat::ColsAtCompileTime > stan::math::mdivide_left_ldlt ( LDLT_factor< T > &  A,
const EigMat &  b 
)
inline

Returns the solution of the system Ax=b given an LDLT_factor of A.

Template Parameters
Ttype of matrix in the LDLT_factor
EigMattype of the right hand side
Parameters
ALDLT_factor
bRight hand side matrix or vector.
Returns
x = A^-1 b, solution of the linear system.
Exceptions
std::domain_errorif rows of b don't match the size of A.

Definition at line 30 of file mdivide_left_ldlt.hpp.