FreeSizePolynomial

Trait FreeSizePolynomial 

Source
pub trait FreeSizePolynomial<N> {
    // Required methods
    fn from_terms(terms: &[(N, usize)]) -> Self
       where Self: Sized;
    fn add_term(&mut self, coeff: N, degree: usize);
}

Required Methods§

Source

fn from_terms(terms: &[(N, usize)]) -> Self
where Self: Sized,

Creates an instance of self with the provided terms.

Source

fn add_term(&mut self, coeff: N, degree: usize)

Adds the term with given coefficient coeff and degree degree to self.

Implementors§