![]() |
Sleipnir C++ API
|
#include </home/runner/work/Sleipnir/Sleipnir/include/sleipnir/optimization/solver/util/ruiz_equilibration.hpp>
Public Types | |
| using | DenseVector = Eigen::VectorX< Scalar > |
| Type alias for dense vector. | |
| using | SparseMatrix = Eigen::SparseMatrix< Scalar > |
| Type alias for sparse matrix. | |
Public Member Functions | |
| void | compute (const SparseMatrix &lower) |
| void | apply (const SparseMatrix &lower, SparseMatrix &scaled) const |
| const DenseVector & | scale () const |
Ruiz equilibration of a symmetric sparse matrix stored as its lower triangle.
Computes a diagonal S such that every row of S A S has its largest entry close to 1.
| Scalar | Scalar type. |
|
inline |
Writes S A S into a matrix with the same sparsity pattern as A.
| lower | A's lower triangle. |
| scaled | The lower triangle of S A S. Its sparsity pattern must already match lower's. |
|
inline |
Computes the equilibration of a symmetric matrix.
| lower | The matrix's lower triangle. |
|
inline |
Returns the diagonal of S.