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

◆ inverse_spd()

template<typename EigMat >
Eigen::Matrix< value_type_t< EigMat >, Eigen::Dynamic, Eigen::Dynamic > stan::math::inverse_spd ( const EigMat &  m)
inline

Returns the inverse of the specified symmetric, pos/neg-definite matrix.

Template Parameters
EigMattype of elements in the matrix
Parameters
mspecified matrix
Returns
Inverse of the matrix (an empty matrix if the specified matrix has size zero).
Exceptions
std::invalid_argumentif the matrix is not symmetric.
std::domain_errorif the matrix is not positive definite.

Definition at line 23 of file inverse_spd.hpp.