fn update_basis_indices(
        &mut self,
        pivot_column: usize,
        leaving_column: usize,
    ) {
        debug_assert!(pivot_column < self.nr_columns());
        debug_assert!(leaving_column < self.nr_columns());

        let was_there = self.basis_columns.remove(&leaving_column);
        debug_assert!(was_there);
        let was_not_there = self.basis_columns.insert(pivot_column);
        debug_assert!(was_not_there);
    }
/// Update the basis index.
///
/// Removes the index of the variable leaving the basis from the `basis_column_map` attribute,
/// while inserting the entering variable index.
///
/// # Arguments
///
/// * `pivot_row`: Row index of the pivot, in range `0` until `self.nr_rows()`.
/// * `pivot_column`: Column index of the pivot, in range `0` until `self.nr_columns()`. Is not
/// yet in the basis.
Update the basis index.
Removes the index of the variable leaving the basis from the `basis_column_map` attribute,
while inserting the entering variable index.
Update the basis index . Removes the index of the variable leaving the basis from the ` basis_column_map ` attribute while inserting the entering variable index .
fn update_basis_indices(
        &mut self,
        pivot_column: usize,
        leaving_column: usize,
    ) {
        debug_assert!(pivot_column < self.nr_columns());
        debug_assert!(leaving_column < self.nr_columns());
        let was_there = self.basis_columns.remove(&leaving_column);
        debug_assert!(was_there);
        let was_not_there = self.basis_columns.insert(pivot_column);
        debug_assert!(was_not_there);
    }
fn update_basis_indices ( & mut self , pivot_column : usize , leaving_column : usize , ) { debug_assert ! ( pivot_column self nr_columns ( ) ) ; debug_assert ! ( leaving_column self nr_columns ( ) ) ; let was_there = self . basis_columns . remove ( & leaving_column ) ; debug_assert ! ( was_there ) ; let was_not_there = self . basis_columns . insert ( pivot_column ) ; debug_assert ! ( was_not_there ) ; }
Update the basis index.
Update the basis index .
&mut self
pivot_column
usize
leaving_column
usize
&mut self
pivot_column
usize
leaving_column
usize