pub struct KernelWorkspace { /* private fields */ }Expand description
Reusable allocation workspace for permuted GF(2) kernel bases.
Implementations§
Source§impl KernelWorkspace
impl KernelWorkspace
Sourcepub fn kernel_basis(
&mut self,
matrix: &[Vec<u8>],
width: usize,
column_permutation: &[usize],
) -> Result<&[Vec<u8>]>
pub fn kernel_basis( &mut self, matrix: &[Vec<u8>], width: usize, column_permutation: &[usize], ) -> Result<&[Vec<u8>]>
Compute a kernel basis after applying a column permutation.
column_permutation[permuted_column] names the corresponding input
column. The returned rows use the original column order and borrow the
workspace until the next mutable call.
Trait Implementations§
Source§impl Debug for KernelWorkspace
impl Debug for KernelWorkspace
Source§impl Default for KernelWorkspace
impl Default for KernelWorkspace
Source§fn default() -> KernelWorkspace
fn default() -> KernelWorkspace
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for KernelWorkspace
impl RefUnwindSafe for KernelWorkspace
impl Send for KernelWorkspace
impl Sync for KernelWorkspace
impl Unpin for KernelWorkspace
impl UnsafeUnpin for KernelWorkspace
impl UnwindSafe for KernelWorkspace
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