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

◆ inverse() [2/2]

template<typename T , require_rev_matrix_t< T > * = nullptr>
auto stan::math::inverse ( const T &  m)
inline

Reverse mode specialization of calculating the inverse of 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.

Definition at line 24 of file inverse.hpp.