ZeroThreshold

Trait ZeroThreshold 

Source
pub trait ZeroThreshold {
    // Required method
    fn zero_threshold() -> Self;
}
Expand description

Trait for types that have a zero threshold.

This trait defines the threshold below which values are considered zero for sparse matrix operations. Values below this threshold are automatically filtered out during construction to maintain sparsity.

Required Methods§

Source

fn zero_threshold() -> Self

Returns the zero threshold for this type.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ZeroThreshold for f32

Source§

impl ZeroThreshold for f64

Implementors§