pub struct BatchInverseBuilder<'a> { /* private fields */ }Expand description
Builder for batch inversion operations.
Implementations§
Source§impl<'a> BatchInverseBuilder<'a>
impl<'a> BatchInverseBuilder<'a>
Sourcepub fn new(elements: &'a [FieldElement]) -> Self
pub fn new(elements: &'a [FieldElement]) -> Self
Create a new batch inverse builder.
Sourcepub fn max_batch_size(self, size: usize) -> Self
pub fn max_batch_size(self, size: usize) -> Self
Set maximum batch size.
Sourcepub fn allocation_strategy(self, strategy: AllocationStrategy) -> Self
pub fn allocation_strategy(self, strategy: AllocationStrategy) -> Self
Set allocation strategy.
Sourcepub fn get_max_batch_size(&self) -> usize
pub fn get_max_batch_size(&self) -> usize
Get the current maximum batch size.
Sourcepub fn get_parallel(&self) -> bool
pub fn get_parallel(&self) -> bool
Check if parallel processing is enabled.
Sourcepub fn get_allocation_strategy(&self) -> AllocationStrategy
pub fn get_allocation_strategy(&self) -> AllocationStrategy
Get the current allocation strategy.
Sourcepub fn compute(self) -> Result<BatchInverseResult, MathError>
pub fn compute(self) -> Result<BatchInverseResult, MathError>
Compute the batch inverse.
Trait Implementations§
Source§impl<'a> Clone for BatchInverseBuilder<'a>
impl<'a> Clone for BatchInverseBuilder<'a>
Source§fn clone(&self) -> BatchInverseBuilder<'a>
fn clone(&self) -> BatchInverseBuilder<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for BatchInverseBuilder<'a>
impl<'a> RefUnwindSafe for BatchInverseBuilder<'a>
impl<'a> Send for BatchInverseBuilder<'a>
impl<'a> Sync for BatchInverseBuilder<'a>
impl<'a> Unpin for BatchInverseBuilder<'a>
impl<'a> UnwindSafe for BatchInverseBuilder<'a>
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