Check if the specified matrix is positive definite.
- Template Parameters
-
EigMat | A type derived from EigenBase with dynamic rows and columns |
- Parameters
-
function | Function name (for error messages) |
name | Variable name (for error messages) |
y | Matrix to test |
- Exceptions
-
<code>std::invalid_argument</code> | if the matrix is not square or if the matrix has 0 size. |
<code>std::domain_error</code> | if the matrix is not symmetric, or if it is not positive semi-definite, or if any element of the matrix is NaN . |
Definition at line 30 of file check_pos_semidefinite.hpp.