Stan Math Library
4.9.0
Automatic Differentiation
|
|
inline |
Returns the nth power of the specific matrix.
M^n = M * M * ... * M.
T | type of the matrix |
[in] | M | a square matrix |
[in] | n | exponent |
std::domain_error | if the matrix contains NaNs or infinities. |
std::invalid_argument | if the exponent is negative or the matrix is not square. |
Definition at line 29 of file matrix_power.hpp.