gtopt::MatrixStats struct

Matrix-wide numerical statistics captured from a FlatLinearProblem after flatten. Surfaced through LinearInterface's stats accessors for conditioning diagnostics. Copied verbatim from the flat problem's stats_* fields (see LinearInterface::load_flat).

Public variables

double max_abs
largest |coefficient|
std::optional<ColIndex> max_col
column owning max_abs
std::string max_col_name
name of max_col (if known)
double min_abs
smallest non-zero |coefficient|
std::optional<ColIndex> min_col
column owning min_abs
std::string min_col_name
name of min_col (if known)
std::size_t nnz
non-zero coefficient count
std::vector<FlatLinearProblem::RowTypeStatsEntry> row_type_stats
std::size_t zeroed
coefficients thresholded to zero