Struct mirror_sparse_matrix::MirrorSparseMatrix[][src]

pub struct MirrorSparseMatrix { /* fields omitted */ }

Implementations

impl MirrorSparseMatrix[src]

pub fn new() -> MirrorSparseMatrix[src]

pub fn initialized(&self) -> bool[src]

pub fn build_from_vec(
    x: &Vec<Vec<(i32, i32)>>,
    row_labels: &Vec<String>,
    col_labels: &Vec<String>
) -> MirrorSparseMatrix
[src]

pub fn nrows(&self) -> usize[src]

pub fn ncols(&self) -> usize[src]

pub fn row_label(&self, i: usize) -> String[src]

pub fn col_label(&self, j: usize) -> String[src]

pub fn row(&self, row: usize) -> Vec<(usize, usize)>[src]

pub fn sum_of_row(&self, row: usize) -> usize[src]

pub fn sum_of_col(&self, col: usize) -> usize[src]

pub fn value(&self, row: usize, col: usize) -> usize[src]

Trait Implementations

impl Clone for MirrorSparseMatrix[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.