pub struct SparseConfig {
pub default_format: SparseFormat,
pub device: DeviceType,
pub dtype: DType,
pub auto_format_conversion: bool,
pub memory_optimization: u8,
pub use_gpu: bool,
pub simd_level: SIMDLevel,
pub sparsity_threshold: f64,
}
Expand description
Configuration for sparse matrix operations
Fields§
§default_format: SparseFormat
Default sparse format for operations
device: DeviceType
Device type for computations
dtype: DType
Data type for sparse values
auto_format_conversion: bool
Enable automatic format conversion
memory_optimization: u8
Memory optimization level (0 = none, 3 = aggressive)
use_gpu: bool
Use GPU acceleration when available
simd_level: SIMDLevel
SIMD optimization level
sparsity_threshold: f64
Sparsity threshold for conversion decisions
Trait Implementations§
Source§impl Clone for SparseConfig
impl Clone for SparseConfig
Source§fn clone(&self) -> SparseConfig
fn clone(&self) -> SparseConfig
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 SparseConfig
impl Debug for SparseConfig
Auto Trait Implementations§
impl Freeze for SparseConfig
impl RefUnwindSafe for SparseConfig
impl Send for SparseConfig
impl Sync for SparseConfig
impl Unpin for SparseConfig
impl UnwindSafe for SparseConfig
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