Skip to content

Commit 477bd13

Browse files
committed
Add FreeModuleHomomorphism::add_generators_from_row
1 parent 1f86512 commit 477bd13

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

ext/crates/algebra/src/module/homomorphism/free_module_homomorphism.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,17 @@ impl<M: Module> FreeModuleHomomorphism<M> {
233233
self.outputs.push(new_outputs);
234234
}
235235

236+
pub fn add_generators_from_rows(
237+
&self,
238+
lock: &MutexGuard<()>,
239+
degree: i32,
240+
rows: Vec<FpVector>,
241+
) {
242+
self.check_mutex(lock);
243+
assert_eq!(degree, self.outputs.len());
244+
self.outputs.push(rows);
245+
}
246+
236247
pub fn apply_to_generator(&self, result: &mut FpVector, coeff: u32, degree: i32, idx: usize) {
237248
let output_on_gen = self.output(degree, idx);
238249
result.add(output_on_gen, coeff);

0 commit comments

Comments
 (0)