Skip to main content

extract_linear

Function extract_linear 

Source
pub fn extract_linear(arena: &ExprArena, id: ExprId) -> Option<LinearTerms>
Expand description

Snapshot the linear terms of id, if any. Used by solver backends to extract LP coefficients without walking the tree themselves.