[−][src]Struct munkres::weight_matrix::WeightMatrix
Implementations
impl<T: WeightNum> WeightMatrix<T>
[src]
pub fn from_row_vec(n: usize, data: Vec<T>) -> WeightMatrix<T>
[src]
pub fn from_fn<F: Fn((usize, usize)) -> T>(n: usize, f: F) -> WeightMatrix<T>
[src]
pub fn as_slice(&self) -> &[T]
[src]
Trait Implementations
impl<T: Debug + WeightNum> Debug for WeightMatrix<T>
[src]
impl<T: WeightNum> Weights for WeightMatrix<T>
[src]
type T = T
pub fn n(&self) -> usize
[src]
pub fn element_at(&self, pos: Position) -> T
[src]
pub fn sub_min_of_each_row(&mut self)
[src]
pub fn add_row(&mut self, row: usize, val: T)
[src]
pub fn sub_column(&mut self, col: usize, val: T)
[src]
pub fn is_solvable(&self) -> bool
[src]
pub fn is_element_zero(&self, pos: Position) -> bool
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for WeightMatrix<T> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T> Send for WeightMatrix<T> where
T: Send,
[src]
T: Send,
impl<T> Sync for WeightMatrix<T> where
T: Sync,
[src]
T: Sync,
impl<T> Unpin for WeightMatrix<T>
[src]
impl<T> UnwindSafe for WeightMatrix<T> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,