Trait Evaluable
Other items inrustnomial
pub trait Evaluable<N> { fn eval(&self, point: N) -> N; }
fn eval(&self, point: N) -> N
Evaluates self at point, and returns the result.
self
point
impl<N> Evaluable<N> for LinearBinomial<N> where N: Add<Output = N> + Mul<Output = N> + Copy,
impl<N> Evaluable<N> for Monomial<N> where N: PowUsize + Mul<Output = N> + Copy,
impl<N> Evaluable<N> for Polynomial<N> where N: Zero + Copy + AddAssign + MulAssign + Mul<Output = N>,
impl<N> Evaluable<N> for QuadraticTrinomial<N> where N: Add<Output = N> + Mul<Output = N> + Copy,
impl<N> Evaluable<N> for SparsePolynomial<N> where N: Zero + PowUsize + Copy + AddAssign + Mul<Output = N>,