pub struct SparseGf2Matrix { /* private fields */ }Implementations§
Source§impl SparseGf2Matrix
impl SparseGf2Matrix
pub fn new( num_rows: usize, num_cols: usize, rows: Vec<Vec<usize>>, ) -> Result<Self>
pub fn identity(size: usize) -> Result<Self>
pub fn transpose(&self) -> Result<Self>
pub fn hconcat(&self, rhs: &Self) -> Result<Self>
pub fn kron(&self, rhs: &Self) -> Result<Self>
pub fn num_rows(&self) -> usize
pub fn num_cols(&self) -> usize
pub fn rows(&self) -> &[Vec<usize>]
Trait Implementations§
Source§impl Clone for SparseGf2Matrix
impl Clone for SparseGf2Matrix
Source§impl Debug for SparseGf2Matrix
impl Debug for SparseGf2Matrix
impl Eq for SparseGf2Matrix
Source§impl PartialEq for SparseGf2Matrix
impl PartialEq for SparseGf2Matrix
impl StructuralPartialEq for SparseGf2Matrix
Auto Trait Implementations§
impl Forget for SparseGf2Matrix
impl Freeze for SparseGf2Matrix
impl Move for SparseGf2Matrix
impl RefUnwindSafe for SparseGf2Matrix
impl Send for SparseGf2Matrix
impl Sync for SparseGf2Matrix
impl Unpin for SparseGf2Matrix
impl UnsafeUnpin for SparseGf2Matrix
impl UnwindSafe for SparseGf2Matrix
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