Skip to content
Merged
Show file tree
Hide file tree
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: 8 additions & 0 deletions libsrc/eclib/flinterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,22 @@ typedef struct
hlimb_t * entries;
slong r;
slong c;
#if (__FLINT_VERSION==3)&&(__FLINT_VERSION_MINOR<3)
hlimb_t ** rows;
#else
slong stride;
#endif
nmod_t mod;
}
hmod_mat_struct;

typedef hmod_mat_struct hmod_mat_t[1];

#if (__FLINT_VERSION==3)&&(__FLINT_VERSION_MINOR<3)
#define hmod_mat_entry(mat,i,j) ((mat)->rows[(i)][(j)])
#else
#define hmod_mat_entry nmod_mat_entry
#endif
#define hmod_mat_nrows(mat) ((mat)->r)
#define hmod_mat_ncols(mat) ((mat)->c)

Expand Down
2 changes: 2 additions & 0 deletions libsrc/mat.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1602,7 +1602,9 @@ hmod_mat_clear(hmod_mat_t mat)
if (mat->entries)
{
flint_free(mat->entries);
#if (__FLINT_VERSION==3)&&(__FLINT_VERSION_MINOR<3)
flint_free(mat->rows);
#endif
}
}

Expand Down
Loading