Struct ClassicalTraits

Source
pub struct ClassicalTraits<C>(/* private fields */);
Expand description

PolyTraits implementation for classical (slow) algorithms.

The underlying algorithms are neither fast nor numerically stable. They should be used only for very small sizes, or for debugging.

Trait Implementations§

Source§

impl<C: Clone> Clone for ClassicalTraits<C>

Source§

fn clone(&self) -> ClassicalTraits<C>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<C: Debug> Debug for ClassicalTraits<C>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<C: Default> Default for ClassicalTraits<C>

Source§

fn default() -> ClassicalTraits<C>

Returns the “default value” for a type. Read more
Source§

impl<C: PartialEq> PartialEq for ClassicalTraits<C>

Source§

fn eq(&self, other: &ClassicalTraits<C>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<C> PolyTraits for ClassicalTraits<C>
where C: Clone + Mul<Output = C> + AddAssign, DefConv<C, Complex64>: TwoWay<Source = C, Dest = Complex64>,

Source§

type Coeff = C

The type of polynomial coefficients.
Source§

type SparseInterpEval = EvalTrait<ClassicalTraits<C>, Complex<f64>>

The evaluation needed for sparse interpolation.
Source§

type SparseInterpInfo = (usize, Vec<(usize, Complex<f64>)>, RelativeParams<Complex<f64>, f64>)

An opaque type returned by the pre-processing method Self::sparse_interp_prep().
Source§

fn slice_mul(out: &mut [Self::Coeff], lhs: &[Self::Coeff], rhs: &[Self::Coeff])

Multiplies two polynomails (represented by slices) and stores the result in another slice. Read more
Source§

fn sparse_interp_prep( sparsity: usize, expons: impl Iterator<Item = usize>, _max_coeff: &Self::Coeff, ) -> (<Self::SparseInterpEval as EvalTypes>::EvalInfo, Self::SparseInterpInfo)

Pre-processing for sparse interpolation. Read more
Source§

fn sparse_interp_slice( evals: &[Complex64], info: &Self::SparseInterpInfo, ) -> Result<Vec<(usize, Self::Coeff)>>

Sparse interpolation following evaluation. Read more
Source§

fn mp_eval_prep<U>( pts: impl Iterator<Item = U>, ) -> <EvalTrait<Self, U> as EvalTypes>::EvalInfo
where EvalTrait<Self, U>: EvalTypes<Coeff = Self::Coeff, Eval = U>,

Pre-processing for multi-point evaluation. Read more
Source§

fn mp_eval_slice<U>( out: &mut impl Extend<U>, coeffs: &[Self::Coeff], info: &<EvalTrait<Self, U> as EvalTypes>::EvalInfo, ) -> Result<()>
where EvalTrait<Self, U>: EvalTypes<Coeff = Self::Coeff, Eval = U>,

Multi-point evaluation. Read more
Source§

impl<C: Copy> Copy for ClassicalTraits<C>

Source§

impl<C: Eq> Eq for ClassicalTraits<C>

Source§

impl<C> StructuralPartialEq for ClassicalTraits<C>

Auto Trait Implementations§

§

impl<C> Freeze for ClassicalTraits<C>

§

impl<C> RefUnwindSafe for ClassicalTraits<C>
where C: RefUnwindSafe,

§

impl<C> Send for ClassicalTraits<C>
where C: Send,

§

impl<C> Sync for ClassicalTraits<C>
where C: Sync,

§

impl<C> Unpin for ClassicalTraits<C>
where C: Unpin,

§

impl<C> UnwindSafe for ClassicalTraits<C>
where C: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.