pub struct EvenBairstowStep<'a> {
pub coeffs: &'a [f64],
pub degree: usize,
pub options: &'a Options,
}Expand description
One Bairstow Newton correction for a quadratic factor (even degree).
Reads the current factor via get(idx), suppresses all other factors via
the neighbor iterable, and returns the corrected factor for the policy to
write. Shared by the sequential, Jacobi-MT and atomic execution policies.
This mirrors ginger::detail::even_bairstow_step in ginger-cpp.
Fields§
§coeffs: &'a [f64]Polynomial coefficients (highest degree first).
degree: usizeDegree of the polynomial.
options: &'a OptionsConvergence options.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for EvenBairstowStep<'a>
impl<'a> RefUnwindSafe for EvenBairstowStep<'a>
impl<'a> Send for EvenBairstowStep<'a>
impl<'a> Sync for EvenBairstowStep<'a>
impl<'a> Unpin for EvenBairstowStep<'a>
impl<'a> UnsafeUnpin for EvenBairstowStep<'a>
impl<'a> UnwindSafe for EvenBairstowStep<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more