pub struct SparseKernelMatrixBuilder { /* private fields */ }Expand description
Sparse kernel matrix builder with configuration
Implementations§
Source§impl SparseKernelMatrixBuilder
impl SparseKernelMatrixBuilder
Sourcepub fn with_threshold(self, threshold: f64) -> Result<Self>
pub fn with_threshold(self, threshold: f64) -> Result<Self>
Set sparsity threshold
Sourcepub fn with_max_entries_per_row(self, max_entries: usize) -> Result<Self>
pub fn with_max_entries_per_row(self, max_entries: usize) -> Result<Self>
Set maximum entries per row
Source§impl SparseKernelMatrixBuilder
Parallel sparse kernel matrix builder
impl SparseKernelMatrixBuilder
Parallel sparse kernel matrix builder
Sourcepub fn build_parallel(
&self,
data: &[Vec<f64>],
kernel: &dyn Kernel,
) -> Result<SparseKernelMatrix>
pub fn build_parallel( &self, data: &[Vec<f64>], kernel: &dyn Kernel, ) -> Result<SparseKernelMatrix>
Build sparse kernel matrix with parallel computation
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SparseKernelMatrixBuilder
impl RefUnwindSafe for SparseKernelMatrixBuilder
impl Send for SparseKernelMatrixBuilder
impl Sync for SparseKernelMatrixBuilder
impl Unpin for SparseKernelMatrixBuilder
impl UnwindSafe for SparseKernelMatrixBuilder
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> 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