Trait qudoku::Polynomial
source · pub trait Polynomial<I, O> {
// Required methods
fn evaluate(&self, input: I) -> O;
fn degree(&self) -> usize;
// Provided method
fn interpolation_threshold(&self) -> usize { ... }
}
Required Methods§
Provided Methods§
sourcefn interpolation_threshold(&self) -> usize
fn interpolation_threshold(&self) -> usize
Returns the number of evaluations needed to interpolate this polynomial, which is just the number of coefficients in the polynomial.