pub struct SparseKernelMatrix { /* private fields */ }Expand description
Sparse kernel matrix representation
Implementations§
Trait Implementations§
Source§impl CompressedKernelMatrix for SparseKernelMatrix
impl CompressedKernelMatrix for SparseKernelMatrix
Source§fn get_block(
&self,
row_start: usize,
row_end: usize,
col_start: usize,
col_end: usize,
) -> Result<Array2<Float>>
fn get_block( &self, row_start: usize, row_end: usize, col_start: usize, col_end: usize, ) -> Result<Array2<Float>>
Get a block of kernel values
Source§fn dimensions(&self) -> (usize, usize)
fn dimensions(&self) -> (usize, usize)
Get matrix dimensions
Source§fn compression_ratio(&self) -> Float
fn compression_ratio(&self) -> Float
Get compression ratio achieved
Source§fn approximation_error(&self) -> Float
fn approximation_error(&self) -> Float
Get approximation error
Source§fn memory_usage(&self) -> usize
fn memory_usage(&self) -> usize
Get memory usage in bytes
Auto Trait Implementations§
impl Freeze for SparseKernelMatrix
impl RefUnwindSafe for SparseKernelMatrix
impl Send for SparseKernelMatrix
impl Sync for SparseKernelMatrix
impl Unpin for SparseKernelMatrix
impl UnsafeUnpin for SparseKernelMatrix
impl UnwindSafe for SparseKernelMatrix
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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