pub(crate) fn new_with_basis(
        provider: &'provider MP,
        // TODO(OPTIMIZATION): Order doesn't matter, document and make this a Vec
        basis: &HashSet<usize>,
    ) -> Self {
        let arbitrary_order = basis.iter().copied().collect::<Vec<_>>();

        Tableau {
            inverse_maintainer: IM::from_basis(&arbitrary_order, provider),
            basis_columns: basis.clone(),

            kind: NonArtificial {
                provider,
            },
        }
    }
/// Creates a Simplex tableau with a specific basis.
///
/// # Arguments
///
/// * `provider`: Provides the original problem for which the other arguments describe a basis.
/// * `carry`: `Carry` with the basis transformation. Corresponds to `basis_indices`.
/// * `basis_indices`: Maps each row to a column, describing a basis. Corresponds to `carry`.
///
/// # Return value
///
/// `Tableau` with for the provided problem with the provided basis.
Creates a Simplex tableau with a specific basis.
Creates a Simplex tableau with a specific basis .
pub(crate) fn new_with_basis(
        provider: &'provider MP,
        // TODO(OPTIMIZATION): Order doesn't matter, document and make this a Vec
        basis: &HashSet<usize>,
    ) -> Self {
        let arbitrary_order = basis.iter().copied().collect::<Vec<_>>();
        Tableau {
            inverse_maintainer: IM::from_basis(&arbitrary_order, provider),
            basis_columns: basis.clone(),
            kind: NonArtificial {
                provider,
            },
        }
    }
pub ( crate ) fn new_with_basis ( provider : & ' provider MP , // TODO(OPTIMIZATION): Order doesn't matter, document and make this a Vec basis : & HashSet < usize > , ) -> Self { let arbitrary_order = basis . iter ( ) . copied ( ) . collect :: < Vec < _ > > ( ) ; Tableau { inverse_maintainer : IM :: from_basis ( & arbitrary_order , provider ) , basis_columns : basis . clone ( ) , kind : NonArtificial { provider , } , } }
Creates a Simplex tableau with a specific basis.
Creates a Simplex tableau with a specific basis .
provider
&'provider MP
basis
&HashSet<usize>
provider
&'provider MP
basis
&HashSet<usize>
return value
`Tableau` with for the provided problem with the provided basis.
` Tableau ` with for the provided problem with the provided basis .