![]() |
Sleipnir C++ API
|
#include <sleipnir/optimization/solver/util/inertia.hpp>
Public Member Functions | |
| constexpr | Inertia (int positive, int negative, int zero) |
| template<typename Scalar > | |
| Inertia (const Eigen::Vector< Scalar, Eigen::Dynamic > &D) | |
| template<typename Scalar > | |
| Inertia (const Eigen::Diagonal< const Eigen::Matrix< Scalar, Eigen::Dynamic, Eigen::Dynamic > > &D) | |
| bool | operator== (const Inertia &) const =default |
Public Attributes | |
| int | positive = 0 |
| The number of positive eigenvalues. | |
| int | negative = 0 |
| The number of negative eigenvalues. | |
| int | zero = 0 |
| The number of zero eigenvalues. | |
Represents the inertia of a matrix (the number of positive, negative, and zero eigenvalues).
Constructs Inertia with the given number of positive, negative, and zero eigenvalues.
| positive | The number of positive eigenvalues. |
| negative | The number of negative eigenvalues. |
| zero | The number of zero eigenvalues. |
|
inlineexplicit |
Constructs Inertia from the D matrix of an LDLT decomposition (see https://en.wikipedia.org/wiki/Sylvester's_law_of_inertia).
| Scalar | Scalar type. |
| D | The D matrix of an LDLT decomposition in vector form. |
|
inlineexplicit |
Constructs Inertia from the D matrix of an LDLT decomposition (see https://en.wikipedia.org/wiki/Sylvester's_law_of_inertia).
| Scalar | Scalar type. |
| D | The D matrix of an LDLT decomposition in vector form. |