pub struct Diagnostics<T> {
pub algorithm: Algorithm,
pub non_zero: usize,
pub dimensions: usize,
pub significant_values: usize,
pub transposed: bool,
pub random_seed: u64,
pub matvecs: usize,
pub detail: Detail<T>,
}Expand description
What the computation did, for logging and for deciding whether to trust a result.
Fields§
§algorithm: Algorithm§non_zero: usizeNon-zeros in the input.
dimensions: usizeDimensions requested by the caller.
significant_values: usizeDimensions actually returned and considered significant.
transposed: boolWhether the algorithm worked on the transpose internally.
random_seed: u64§matvecs: usizeSparse matrix-vector products performed, counting a block product against k
dense columns as k. Comparable across algorithms, so it is the honest way to
price one method against another.
detail: Detail<T>Trait Implementations§
Source§impl<T: Clone> Clone for Diagnostics<T>
impl<T: Clone> Clone for Diagnostics<T>
Source§fn clone(&self) -> Diagnostics<T>
fn clone(&self) -> Diagnostics<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for Diagnostics<T>
impl<T: Debug> Debug for Diagnostics<T>
Source§impl<T: PartialEq> PartialEq for Diagnostics<T>
impl<T: PartialEq> PartialEq for Diagnostics<T>
impl<T: PartialEq> StructuralPartialEq for Diagnostics<T>
Auto Trait Implementations§
impl<T> Freeze for Diagnostics<T>where
T: Freeze,
impl<T> RefUnwindSafe for Diagnostics<T>where
T: RefUnwindSafe,
impl<T> Send for Diagnostics<T>where
T: Send,
impl<T> Sync for Diagnostics<T>where
T: Sync,
impl<T> Unpin for Diagnostics<T>where
T: Unpin,
impl<T> UnsafeUnpin for Diagnostics<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Diagnostics<T>where
T: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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