Loading...
Searching...
No Matches
MatrixProperties.h
Go to the documentation of this file.
1//
2// MatrixProperties.hpp
3// gpr_dimer
4//
5// Created by Maxim Masterov on 18/01/2021.
6//
7
8#ifndef MatrixProperties_hpp
9#define MatrixProperties_hpp
10
11#include "../backend/Macros.h"
12
13namespace math {
18public:
22 bool isDD(const gpr::EigenMatrix& Matrix);
23
27 bool isPD(const gpr::EigenMatrix& Matrix);
28
32 bool isPSD(const gpr::EigenMatrix& Matrix);
33
34private:
38 double xTAx(const gpr::EigenMatrix& Matrix);
39};
40} // namespace math
41
42#endif /* MatrixProperties_hpp */
Contains methods for checking basic matrix properties.
bool isPD(const gpr::EigenMatrix &Matrix)
Return true if the given matrix is Positive Definite (PD).
bool isDD(const gpr::EigenMatrix &Matrix)
Return true if the given matrix is Diagonally Dominant (DD).
bool isPSD(const gpr::EigenMatrix &Matrix)
Return true if the given matrix is Positive Semi-Definite (PSD).
Eigen::Matrix< double, EigenDynamic, EigenDynamic, EigenMatrixStorage > EigenMatrix
Definition Macros.h:20