pub enum KktVariant {
KOnly,
WithLPattern,
WithLValues,
}Expand description
Payload-detail variant for the kkt dump category.
KOnly (the default) emits only the K matrix and the solve’s
RHS/solution. WithLPattern additionally emits the LDLᵀ factor’s
strict-lower nonzero pattern (L_irn / L_jcn) and the fill-
reducing permutation perm. WithLValues further adds L_vals
in the same order as the pattern.
The L fields are emitted in permuted coordinates — the column /
row indices reference the permuted system K’ = Pᵀ K P, and the
perm array carries the mapping back to original-variable space
(perm[k] = original_row for the k-th permuted row).
Backends that don’t expose the factor pattern (e.g. MA57) silently skip the L fields even when this variant requests them.
Variants§
Implementations§
Source§impl KktVariant
impl KktVariant
pub fn as_str(self) -> &'static str
Sourcepub fn wants_l_pattern(self) -> bool
pub fn wants_l_pattern(self) -> bool
True if the variant asks for the L pattern (with or without
values). Used by the dump site to short-circuit the
factor_pattern() call when only K is wanted.
Sourcepub fn wants_l_values(self) -> bool
pub fn wants_l_values(self) -> bool
True if the variant asks for the L numerical values.
Trait Implementations§
Source§impl Clone for KktVariant
impl Clone for KktVariant
Source§fn clone(&self) -> KktVariant
fn clone(&self) -> KktVariant
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for KktVariant
impl Debug for KktVariant
Source§impl Default for KktVariant
impl Default for KktVariant
Source§fn default() -> KktVariant
fn default() -> KktVariant
Source§impl PartialEq for KktVariant
impl PartialEq for KktVariant
Source§fn eq(&self, other: &KktVariant) -> bool
fn eq(&self, other: &KktVariant) -> bool
self and other values to be equal, and is used by ==.