fn to_elements(&self, rank: usize) -> Vec<usize> {
        if let Some(elements) = self.get(rank) {
            let mut new_elements = Vec::new();
            new_elements.resize(elements.len(), 0);

            for (&sub, &idx) in elements {
                new_elements[idx] = sub;
            }

            new_elements
        } else {
            Vec::new()
        }
    }
/// Gets the indices of the elements of a given rank in the original
/// polytope.
Gets the indices of the elements of a given rank in the original
polytope.
Gets the indices of the elements of a given rank in the original polytope .
fn to_elements(&self, rank: usize) -> Vec<usize> {
        if let Some(elements) = self.get(rank) {
            let mut new_elements = Vec::new();
            new_elements.resize(elements.len(), 0);
            for (&sub, &idx) in elements {
                new_elements[idx] = sub;
            }
            new_elements
        } else {
            Vec::new()
        }
    }
fn to_elements ( & self , rank : usize ) -> Vec < usize > { if let Some ( elements ) = self . get ( rank ) { let mut new_elements = Vec :: new ( ) ; new_elements . resize ( elements . len ( ) , 0 ) ; for ( & sub , & idx ) in elements { new_elements [ idx ] = sub ; } new_elements } else { Vec :: new ( ) } }
Gets the indices of the elements of a given rank in the original
polytope.
Gets the indices of the elements of a given rank in the original polytope .
&self
rank
usize
&self
rank
usize