Skip to main content

detect_modular_affine

Function detect_modular_affine 

Source
pub fn detect_modular_affine(v: &[i64]) -> Option<GenExpr>
Expand description

Recognize v[i] = a + b·(i mod p) for a small period p and synthesize the generator.