![]() |
Sleipnir C++ API
|
#include </home/runner/work/Sleipnir/Sleipnir/include/sleipnir/optimization/solver/util/inertia.hpp>
Public Member Functions | |
| constexpr | Inertia (int positive, int negative, int zero) |
| 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).
|
inlineconstexpr |
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. |
|
default |