fix: Make all polynomials monic in task fn
This commit is contained in:
parent
2e73125e14
commit
69a2026c84
2 changed files with 16 additions and 2 deletions
|
|
@ -112,7 +112,7 @@ pub fn gfpoly_gcd(args: &Value) -> Result<Polynomial> {
|
|||
let poly_a = Polynomial::from_c_array(&args["A"].clone());
|
||||
let poly_b = Polynomial::from_c_array(&args["B"].clone());
|
||||
|
||||
let result = gcd(poly_a, poly_b);
|
||||
let result = gcd(poly_a.monic(), poly_b.monic());
|
||||
|
||||
Ok(result)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue