pub struct MinBatchFailure {
pub total: usize,
pub failure_count: usize,
pub first_index: usize,
pub first_status: MinStatus,
pub first_iterations: u32,
}Expand description
One or more lanes of a MinBatch did not converge.
Returned by MinBatch::extrema and MinBatch::extremal_values. It names
both the scale of the problem (how many of how many) and a specific lane to
look at, because “3 of 10 000 lanes failed” is only actionable once you know
which lane.
§Units
All counts and indices are dimensionless.
Fields§
§total: usizeNumber of lanes in the batch.
failure_count: usizeNumber of lanes that did not converge.
first_index: usizeIndex of the first non-converged lane.
first_status: MinStatusWhy that lane failed.
first_iterations: u32Iterations that lane performed before giving up.
Trait Implementations§
Source§impl Clone for MinBatchFailure
impl Clone for MinBatchFailure
impl Copy for MinBatchFailure
Source§impl Debug for MinBatchFailure
impl Debug for MinBatchFailure
Source§impl Display for MinBatchFailure
impl Display for MinBatchFailure
impl Eq for MinBatchFailure
Source§impl Error for MinBatchFailure
impl Error for MinBatchFailure
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for MinBatchFailure
impl PartialEq for MinBatchFailure
impl StructuralPartialEq for MinBatchFailure
Auto Trait Implementations§
impl Freeze for MinBatchFailure
impl RefUnwindSafe for MinBatchFailure
impl Send for MinBatchFailure
impl Sync for MinBatchFailure
impl Unpin for MinBatchFailure
impl UnsafeUnpin for MinBatchFailure
impl UnwindSafe for MinBatchFailure
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