Skip to content

Commit f4e5978

Browse files
committed
format
1 parent 128f931 commit f4e5978

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/gf2_matrix.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,18 +189,16 @@ impl GF2Matrix {
189189
/// # Returns
190190
/// Matrix X such that self * X = Y.
191191
pub fn solve_matrix_system(&self, y: &GF2Matrix) -> GF2Matrix {
192-
193192
if self.rank() < self.ncols() {
194193
panic!("Matrix must have full rank");
195194
}
196195

197196
let (ech, operations) = self.echelon_form();
198197
let to_remove = ech.nrows() - ech.rank();
199-
198+
200199
let n_rows = self.ncols();
201-
let n_cols = y.ncols();
200+
let n_cols = y.ncols();
202201

203-
204202
let mut elements = vec![vec![0u8; n_cols]; n_rows];
205203
for j in 0..y.ncols() {
206204
let mut solved_b = Self::apply_operations(&operations, &y.column(j));

0 commit comments

Comments
 (0)