Skip to content

Commit

Permalink
Fix bug in Subquotient::complement_pivots
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeyBF committed Oct 7, 2024
1 parent a49229b commit bffca98
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ext/crates/fp/src/matrix/subquotient.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,8 @@ impl Subquotient {

/// The pivot columns of the complement to the subspace
pub fn complement_pivots(&self) -> impl Iterator<Item = usize> + '_ {
(0..self.ambient_dimension()).filter(|&i| {
!self.quotient.pivots().contains(&(i as isize))
&& !self.gens.pivots().contains(&(i as isize))
})
(0..self.ambient_dimension())
.filter(|&i| self.quotient.pivots()[i] < 0 && self.gens.pivots()[i] < 0)
}

pub fn quotient(&mut self, elt: FpSlice) {
Expand Down

0 comments on commit bffca98

Please sign in to comment.