pub struct MemoryMappedKernelConfig {
pub file_path: PathBuf,
pub cache_size: usize,
pub block_size: usize,
pub precompute_all: bool,
pub compression_level: u8,
pub read_only: bool,
pub num_threads: usize,
}Expand description
Configuration for memory-mapped kernel matrices
Fields§
§file_path: PathBufPath to store the memory-mapped file
cache_size: usizeCache size for frequently accessed kernel values (in elements)
block_size: usizeBlock size for chunked access (in elements)
precompute_all: boolWhether to precompute the entire kernel matrix
compression_level: u8Compression level for on-disk storage (0-9, 0=no compression)
read_only: boolWhether to use read-only mode
num_threads: usizeNumber of threads for parallel computation
Trait Implementations§
Source§impl Clone for MemoryMappedKernelConfig
impl Clone for MemoryMappedKernelConfig
Source§fn clone(&self) -> MemoryMappedKernelConfig
fn clone(&self) -> MemoryMappedKernelConfig
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 Debug for MemoryMappedKernelConfig
impl Debug for MemoryMappedKernelConfig
Auto Trait Implementations§
impl Freeze for MemoryMappedKernelConfig
impl RefUnwindSafe for MemoryMappedKernelConfig
impl Send for MemoryMappedKernelConfig
impl Sync for MemoryMappedKernelConfig
impl Unpin for MemoryMappedKernelConfig
impl UnsafeUnpin for MemoryMappedKernelConfig
impl UnwindSafe for MemoryMappedKernelConfig
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> 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