gtopt::RowTypeStats struct

Per-row-type coefficient statistics.

Groups constraint rows by their type label (e.g. "bal", "theta", "cap") and reports the coefficient range within each group. Only populated when both compute_stats and row_with_names are enabled in LpMatrixOptions.

Public functions

auto coeff_ratio() const -> constexpr double noexcept

Public variables

size_t count
Number of rows of this type.
double max_abs
Largest |coefficient| in rows of this type.
double min_abs
Smallest |coefficient| (> 0)
size_t nnz
Non-zero coefficients across all rows of this type.
std::string type
Row type label (e.g. "bal", "theta")