Struct munkres::weight_matrix::WeightMatrix [] [src]

pub struct WeightMatrix<T: WeightNum> {
    // some fields omitted
}

Methods

impl<T: WeightNum> WeightMatrix<T>
[src]

fn from_row_vec(n: usize, data: Vec<T>) -> WeightMatrix<T>

fn from_fn<F: Fn((usize, usize)) -> T>(n: usize, f: F) -> WeightMatrix<T>

fn as_slice(&self) -> &[T]

Trait Implementations

impl<T: Debug + WeightNum> Debug for WeightMatrix<T>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<T: WeightNum> Weights for WeightMatrix<T>
[src]

type T = T

fn n(&self) -> usize

fn element_at(&self, pos: (usize, usize)) -> T

fn is_element_zero(&self, pos: (usize, usize)) -> bool

fn sub_min_of_each_row(&mut self)

fn add_row(&mut self, row: usize, val: T)

fn sub_col(&mut self, col: usize, val: T)