Stan Math Library
5.0.0
Automatic Differentiation
|
|
inline |
Check if the specified matrix is symmetric.
The error message is either 0 or 1 indexed, specified by stan::error_index::value
.
EigMat | Type of matrix |
function | Function name (for error messages) |
name | Variable name (for error messages) |
y | Matrix to test |
<code>std::invalid_argument</code> | if the matrix is not square. |
<code>std::domain_error</code> | if any element not on the main diagonal is NaN |
Definition at line 32 of file check_symmetric.hpp.