pub struct KernelMatrixStats {
pub evaluations: u64,
pub cache_hits: u64,
pub cache_misses: u64,
pub matrix_dim: usize,
pub computation_ms: f64,
}Expand description
Statistics about kernel matrix computation.
Fields§
§evaluations: u64Total number of kernel evaluations performed.
cache_hits: u64Number of cache hits (if caching enabled).
cache_misses: u64Number of cache misses (if caching enabled).
matrix_dim: usizeDimension of the computed matrix (n for n x n).
computation_ms: f64Wall-clock time for computation in milliseconds.
Implementations§
Source§impl KernelMatrixStats
impl KernelMatrixStats
Sourcepub fn cache_hit_rate(&self) -> f64
pub fn cache_hit_rate(&self) -> f64
Cache hit rate as a fraction in [0.0, 1.0].
Trait Implementations§
Source§impl Clone for KernelMatrixStats
impl Clone for KernelMatrixStats
Source§fn clone(&self) -> KernelMatrixStats
fn clone(&self) -> KernelMatrixStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KernelMatrixStats
impl Debug for KernelMatrixStats
Source§impl Default for KernelMatrixStats
impl Default for KernelMatrixStats
Source§fn default() -> KernelMatrixStats
fn default() -> KernelMatrixStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for KernelMatrixStats
impl RefUnwindSafe for KernelMatrixStats
impl Send for KernelMatrixStats
impl Sync for KernelMatrixStats
impl Unpin for KernelMatrixStats
impl UnsafeUnpin for KernelMatrixStats
impl UnwindSafe for KernelMatrixStats
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