pub struct MatrixSliceMut<'a> {
fp: Fp<ValidPrime>,
data: &'a mut [u64],
rows: usize,
col_start: usize,
col_end: usize,
stride: usize,
}Fields§
§fp: Fp<ValidPrime>§data: &'a mut [u64]§rows: usize§col_start: usize§col_end: usize§stride: usizeImplementations§
Source§impl<'a> MatrixSliceMut<'a>
impl<'a> MatrixSliceMut<'a>
pub fn prime(&self) -> ValidPrime
pub fn columns(&self) -> usize
pub fn rows(&self) -> usize
pub fn row_slice<'b: 'a>( &'b mut self, row_start: usize, row_end: usize, ) -> MatrixSliceMut<'b>
pub fn iter(&self) -> impl Iterator<Item = FpSlice<'_>> + '_
pub fn iter_mut(&mut self) -> impl Iterator<Item = FpSliceMut<'_>> + '_
pub fn maybe_par_iter_mut( &mut self, ) -> impl MaybeIndexedParallelIterator<Item = FpSliceMut<'_>> + '_
pub fn row(&mut self, row: usize) -> FpSlice<'_>
pub fn row_mut(&mut self, row: usize) -> FpSliceMut<'_>
pub fn add_identity(&mut self)
Sourcepub fn add_masked(&mut self, other: &Matrix, mask: &[usize])
pub fn add_masked(&mut self, other: &Matrix, mask: &[usize])
For each row, add the v[i]th entry of other to self.
Auto Trait Implementations§
impl<'a> Freeze for MatrixSliceMut<'a>
impl<'a> RefUnwindSafe for MatrixSliceMut<'a>
impl<'a> Send for MatrixSliceMut<'a>
impl<'a> Sync for MatrixSliceMut<'a>
impl<'a> Unpin for MatrixSliceMut<'a>
impl<'a> !UnwindSafe for MatrixSliceMut<'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
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