Skip to content

Commit f208902

Browse files
author
Maël Hostettler
committed
used _nmod_vec_zero to set lower poly values
1 parent 2bc9678 commit f208902

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/nmod_poly/evaluate_geometric_nmod_vec.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
#include "nmod.h"
1414
#include "nmod_poly.h"
15+
#include "nmod_vec.h"
1516

1617
void
1718
_nmod_poly_evaluate_geometric_nmod_vec_fast_precomp(nn_ptr vs, nn_srcptr poly,
@@ -45,6 +46,8 @@ _nmod_poly_evaluate_geometric_nmod_vec_fast_precomp(nn_ptr vs, nn_srcptr poly,
4546
nmod_poly_set_coeff_ui(a, d - 1 - i, 0);
4647
}
4748

49+
_nmod_vec_zero(a->coeffs, d - plen + 1); // TODO: better approch mentionned in https://github.com/flintlib/flint/pull/2449#discussion_r2476772717
50+
4851
nmod_poly_mul(b, a, G->f);
4952

5053
for (i = 0; i < len; i++)

0 commit comments

Comments
 (0)