Represents the inertia of a matrix (the number of positive, negative, and zero eigenvalues).
More...
#include </home/runner/work/allwpilib/allwpilib/wpimath/src/main/native/thirdparty/sleipnir/include/sleipnir/optimization/solver/util/inertia.hpp>
|
| 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).
◆ Inertia() [1/4]
| slp::Inertia::Inertia |
( |
| ) |
|
|
constexprdefault |
◆ Inertia() [2/4]
| slp::Inertia::Inertia |
( |
int | positive, |
|
|
int | negative, |
|
|
int | zero ) |
|
inlineconstexpr |
Constructs Inertia with the given number of positive, negative, and zero eigenvalues.
- Parameters
-
| positive | The number of positive eigenvalues. |
| negative | The number of negative eigenvalues. |
| zero | The number of zero eigenvalues. |
◆ Inertia() [3/4]
template<typename Scalar>
| slp::Inertia::Inertia |
( |
const Eigen::Vector< Scalar, Eigen::Dynamic > & | D | ) |
|
|
inlineexplicit |
◆ Inertia() [4/4]
template<typename Scalar>
| slp::Inertia::Inertia |
( |
const Eigen::Diagonal< const Eigen::Matrix< Scalar, Eigen::Dynamic, Eigen::Dynamic > > & | D | ) |
|
|
inlineexplicit |
◆ operator==()
| bool slp::Inertia::operator== |
( |
const Inertia & | | ) |
const |
|
default |
◆ negative
| int slp::Inertia::negative = 0 |
The number of negative eigenvalues.
◆ positive
| int slp::Inertia::positive = 0 |
The number of positive eigenvalues.
◆ zero
| int slp::Inertia::zero = 0 |
The number of zero eigenvalues.
The documentation for this class was generated from the following file:
- /home/runner/work/allwpilib/allwpilib/wpimath/src/main/native/thirdparty/sleipnir/include/sleipnir/optimization/solver/util/inertia.hpp