pub struct NativeRepairSolver<'a> { /* private fields */ }Expand description
The native default solver: weaver’s rayon GF(2^16) matmul over the plan’s
pre-built input_factors. Byte-identical to the pre-seam in-memory
reconstruct, and the path exercised by the crate’s own repair tests.
Implementations§
Source§impl<'a> NativeRepairSolver<'a>
impl<'a> NativeRepairSolver<'a>
Sourcepub fn new(input_factors: &'a Matrix, chunk_words: usize) -> Self
pub fn new(input_factors: &'a Matrix, chunk_words: usize) -> Self
Build a solver over the plan’s repair coefficient matrix. chunk_words
is the per-output word tiling used by the rayon kernel.
Sourcepub fn with_cancellation(self, cancel: Option<CancellationToken>) -> Self
pub fn with_cancellation(self, cancel: Option<CancellationToken>) -> Self
Attach a cancellation token, checked once per output row.
Trait Implementations§
Source§impl RepairSolver for NativeRepairSolver<'_>
impl RepairSolver for NativeRepairSolver<'_>
Source§fn reconstruct(
&self,
problem: &mut RepairProblem<'_>,
) -> Result<(), SolverError>
fn reconstruct( &self, problem: &mut RepairProblem<'_>, ) -> Result<(), SolverError>
Reconstruct every
problem.outputs[j] in place from problem.sources.Auto Trait Implementations§
impl<'a> Freeze for NativeRepairSolver<'a>
impl<'a> RefUnwindSafe for NativeRepairSolver<'a>
impl<'a> Send for NativeRepairSolver<'a>
impl<'a> Sync for NativeRepairSolver<'a>
impl<'a> Unpin for NativeRepairSolver<'a>
impl<'a> UnsafeUnpin for NativeRepairSolver<'a>
impl<'a> UnwindSafe for NativeRepairSolver<'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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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