fix: Fix error in calling of monic function
This commit is contained in:
parent
1b45c192b3
commit
1290adcd9b
2 changed files with 18 additions and 13 deletions
|
|
@ -82,11 +82,11 @@ pub fn gfpoly_sort(args: &Value) -> Result<Vec<Polynomial>> {
|
|||
}
|
||||
|
||||
pub fn gfpoly_make_monic(args: &Value) -> Result<Polynomial> {
|
||||
let mut poly_a = Polynomial::from_c_array(&args["A"].clone());
|
||||
let poly_a = Polynomial::from_c_array(&args["A"].clone());
|
||||
|
||||
poly_a.monic();
|
||||
let result = poly_a.monic();
|
||||
|
||||
Ok(poly_a)
|
||||
Ok(result)
|
||||
}
|
||||
|
||||
pub fn gfpoly_sqrt(args: &Value) -> Result<Polynomial> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue