[][src]Trait pathfinding::kuhn_munkres::Weights

pub trait Weights<C> {
    pub fn rows(&self) -> usize;
pub fn columns(&self) -> usize;
pub fn at(&self, row: usize, col: usize) -> C;
pub fn neg(&self) -> Self
    where
        Self: Sized,
        C: Signed
; }

Adjacency matrix for weights.

Required methods

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

Return the number of rows.

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

Return the number of columns.

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

Return the element at position.

pub fn neg(&self) -> Self where
    Self: Sized,
    C: Signed
[src]

Return the negated weights.

Loading content...

Implementors

impl<C: Copy> Weights<C> for Matrix<C>[src]

Loading content...