Skip to main content

detect_poly_generator

Function detect_poly_generator 

Source
pub fn detect_poly_generator(v: &[i64]) -> Option<(u8, Vec<i64>)>
Expand description

Recognize v as a polynomial column (degree ≤ MAX_POLY_DEGREE) via finite differences and return (degree, seeds) — the k+1 leading-edge seeds, confirmed by exact reconstruction.