Trait pathfinding::kuhn_munkres::Weights [−][src]
pub trait Weights<C> { fn rows(&self) -> usize; fn columns(&self) -> usize; fn at(&self, row: usize, col: usize) -> C; fn neg(&self) -> Self
where
Self: Sized,
C: Signed; }
Adjacency matrix for weights.
Required methods
fn rows(&self) -> usize
[src]
Return the number of rows.
fn columns(&self) -> usize
[src]
Return the number of columns.
fn at(&self, row: usize, col: usize) -> C
[src]
Return the element at position.
fn neg(&self) -> Self where
Self: Sized,
C: Signed,
[src]
Self: Sized,
C: Signed,
Return the negated weights.
Implementors
Loading content...