pub struct FastIntersectionComputer { /* private fields */ }Expand description
High-performance intersection number computation optimized for WASM
Implementations§
Source§impl FastIntersectionComputer
impl FastIntersectionComputer
Sourcepub fn new(config: WasmPerformanceConfig) -> Self
pub fn new(config: WasmPerformanceConfig) -> Self
Create a new high-performance intersection computer
Sourcepub fn fast_intersection_batch(
&mut self,
operations: &[(i64, i64, i64)],
) -> EnumerativeResult<Vec<Rational64>>
pub fn fast_intersection_batch( &mut self, operations: &[(i64, i64, i64)], ) -> EnumerativeResult<Vec<Rational64>>
Compute intersection numbers with SIMD optimization
Sourcepub fn clear_cache(&mut self)
pub fn clear_cache(&mut self)
Clear computation cache
Sourcepub fn cache_stats(&self) -> (usize, usize)
pub fn cache_stats(&self) -> (usize, usize)
Get cache statistics
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FastIntersectionComputer
impl RefUnwindSafe for FastIntersectionComputer
impl Send for FastIntersectionComputer
impl Sync for FastIntersectionComputer
impl Unpin for FastIntersectionComputer
impl UnwindSafe for FastIntersectionComputer
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