Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions flint-extras/src/nmod_mat_poly_extra/nmod_mat_poly_mbasis.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,12 @@ _PROFILER_REGION_START
const slong n = matp->c;

// initialize output approximant basis with identity
// except when matp == 0: return appbas = x**order * identity
// except when matp == 0: return appbas = identity
if (nmod_mat_poly_is_zero(matp))
{
nmod_mat_poly_fit_length(appbas, order+1);
_nmod_mat_poly_set_length(appbas, order+1);
nmod_mat_one(appbas->coeffs + order);
nmod_mat_poly_fit_length(appbas, 1);
_nmod_mat_poly_set_length(appbas, 1);
nmod_mat_one(appbas->coeffs + 0);
_PROFILER_REGION_STOP(t_others)
_MBASIS_PROFILER_OUTPUT
return;
Expand Down