Struct bit_matrix::submatrix::BitSubMatrixMut [] [src]

pub struct BitSubMatrixMut<'a> { /* fields omitted */ }

Mutable access to a range of matrix's rows.

Methods

impl<'a> BitSubMatrixMut<'a>
[src]

Returns a new BitSubMatrixMut.

Forms a BitSubMatrix from a pointer and dimensions.

Sets the value of a bit.

Panics

Panics if (row, col) is out of bounds.

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())).

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.

Iterates over the matrix's rows in the form of mutable slices.

Trait Implementations

impl<'a> Index<usize> for BitSubMatrixMut<'a>
[src]

Returns the matrix's row in the form of a mutable slice.

The returned type after indexing

The method for the indexing (container[index]) operation

impl<'a> IndexMut<usize> for BitSubMatrixMut<'a>
[src]

Returns the matrix's row in the form of a mutable slice.

The method for the mutable indexing (container[index]) operation