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

◆ inverse() [1/2]

template<typename EigMat , require_eigen_vt< is_fvar, EigMat > * = nullptr>
Eigen::Matrix< value_type_t< EigMat >, EigMat::RowsAtCompileTime, EigMat::ColsAtCompileTime > stan::math::inverse ( const EigMat &  m)
inline

Forward mode specialization of calculating the inverse of the matrix.

Returns the inverse of the specified matrix.

Template Parameters
Ttype 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 square.
Template Parameters
Ttype of elements in the matrix
Rnumber of rows, can be Eigen::Dynamic
Cnumber of columns, can be Eigen::Dynamic
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 square.

Definition at line 28 of file inverse.hpp.