pub struct QuantizedKernelMatrix { /* private fields */ }Expand description
Quantized kernel matrix for discrete compression
Implementations§
Trait Implementations§
Source§impl CompressedKernelMatrix for QuantizedKernelMatrix
impl CompressedKernelMatrix for QuantizedKernelMatrix
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 QuantizedKernelMatrix
impl RefUnwindSafe for QuantizedKernelMatrix
impl Send for QuantizedKernelMatrix
impl Sync for QuantizedKernelMatrix
impl Unpin for QuantizedKernelMatrix
impl UnsafeUnpin for QuantizedKernelMatrix
impl UnwindSafe for QuantizedKernelMatrix
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