Forward mode specialization of calculating the inverse of the matrix.
Returns the inverse of the specified matrix.
- Template Parameters
-
T | type of elements in the matrix |
- Parameters
-
- Returns
- Inverse of the matrix (an empty matrix if the specified matrix has size zero).
- Exceptions
-
std::invalid_argument | if the matrix is not square. |
- Template Parameters
-
T | type of elements in the matrix |
R | number of rows, can be Eigen::Dynamic |
C | number of columns, can be Eigen::Dynamic |
- Parameters
-
- Returns
- Inverse of the matrix (an empty matrix if the specified matrix has size zero).
- Exceptions
-
std::invalid_argument | if the matrix is not square. |
Definition at line 29 of file inverse.hpp.