Struct bit_matrix::submatrix::BitSubMatrixMut [−][src]
pub struct BitSubMatrixMut<'a> { /* fields omitted */ }
Expand description
Mutable access to a range of matrix’s rows.
Implementations
Returns a new BitSubMatrixMut.
Forms a BitSubMatrix from a pointer and dimensions.
Returns a slice of the matrix’s rows.
Given a row’s index, returns a slice of all rows above that row, a reference to said row, and a slice of all rows below.
Functionally equivalent to (self.sub_matrix(0..row), &self[row], self.sub_matrix(row..self.num_rows()))
.
pub fn split_at_mut(
&mut self,
row: usize
) -> (BitSubMatrixMut<'_>, &mut BitVecSlice, BitSubMatrixMut<'_>)
pub fn split_at_mut(
&mut self,
row: usize
) -> (BitSubMatrixMut<'_>, &mut BitVecSlice, BitSubMatrixMut<'_>)
Given a row’s index, returns a slice of all rows above that row, a reference to said row, and a slice of all rows below.
Computes the transitive closure of the binary relation represented by the matrix.
Uses the Warshall’s algorithm.
Computes the reflexive closure of the binary relation represented by the matrix.
Trait Implementations
Returns the matrix’s row in the form of a mutable slice.
type Output = BitVecSlice
type Output = BitVecSlice
The returned type after indexing.
Performs the indexing (container[index]
) operation. Read more
Returns the matrix’s row in the form of a mutable slice.
Performs the mutable indexing (container[index]
) operation. Read more