Skip to content

Commit 4966f07

Browse files
committed
Upgrade to flint-3.3.0
1 parent 11baeed commit 4966f07

File tree

4 files changed

+70
-3
lines changed

4 files changed

+70
-3
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
diff --git a/libsrc/eclib/flinterface.h b/libsrc/eclib/flinterface.h
2+
index a74049d..b9a582e 100644
3+
--- a/libsrc/eclib/flinterface.h
4+
+++ b/libsrc/eclib/flinterface.h
5+
@@ -58,14 +58,22 @@ typedef struct
6+
hlimb_t * entries;
7+
slong r;
8+
slong c;
9+
+#if (__FLINT_VERSION==3)&&(__FLINT_VERSION_MINOR<3)
10+
hlimb_t ** rows;
11+
+#else
12+
+ slong stride;
13+
+#endif
14+
nmod_t mod;
15+
}
16+
hmod_mat_struct;
17+
18+
typedef hmod_mat_struct hmod_mat_t[1];
19+
20+
+#if (__FLINT_VERSION==3)&&(__FLINT_VERSION_MINOR<3)
21+
#define hmod_mat_entry(mat,i,j) ((mat)->rows[(i)][(j)])
22+
+#else
23+
+#define hmod_mat_entry nmod_mat_entry
24+
+#endif
25+
#define hmod_mat_nrows(mat) ((mat)->r)
26+
#define hmod_mat_ncols(mat) ((mat)->c)
27+
28+
diff --git a/libsrc/mat.cc b/libsrc/mat.cc
29+
index b0c6c08..948fc24 100644
30+
--- a/libsrc/mat.cc
31+
+++ b/libsrc/mat.cc
32+
@@ -1602,7 +1602,9 @@ hmod_mat_clear(hmod_mat_t mat)
33+
if (mat->entries)
34+
{
35+
flint_free(mat->entries);
36+
+#if (__FLINT_VERSION==3)&&(__FLINT_VERSION_MINOR<3)
37+
flint_free(mat->rows);
38+
+#endif
39+
}
40+
}
41+

build/pkgs/flint/checksums.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
tarball=flint-VERSION.tar.gz
2-
sha1=ebca3a55e48373c2eeee6c172051f3177845e121
3-
sha256=577d7729e4c2e79ca1e894ad2ce34bc73516a92f623d42562694817f888a17eb
2+
sha1=1e60a03c108b3240cb3341c0d9f462ad0760e697
3+
sha256=d9ae0f1318253727068270dbfa3c4b55155e3f4b7be6ca9c056e58f2838f15b3
44
upstream_url=https://github.com/flintlib/flint/releases/download/vVERSION/flint-VERSION.tar.gz

build/pkgs/flint/package-version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.2.2
1+
3.3.0
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
diff --git a/factory/FLINTconvert.cc b/factory/FLINTconvert.cc
2+
index c36f6022d..67c271c5a 100644
3+
--- a/factory/FLINTconvert.cc
4+
+++ b/factory/FLINTconvert.cc
5+
@@ -652,7 +652,7 @@ convertFacCFMatrix2Fq_nmod_mat_t (fq_nmod_mat_t M,
6+
{
7+
for(j=m.columns();j>0;j--)
8+
{
9+
- convertFacCF2nmod_poly_t (M->rows[i-1]+j-1, m (i,j));
10+
+ convertFacCF2nmod_poly_t (fq_nmod_mat_entry (M, i-1, j-1), m (i,j));
11+
}
12+
}
13+
}
14+
diff --git a/libpolys/polys/flintconv.cc b/libpolys/polys/flintconv.cc
15+
index 89152f5e4..56d527c16 100644
16+
--- a/libpolys/polys/flintconv.cc
17+
+++ b/libpolys/polys/flintconv.cc
18+
@@ -331,7 +331,7 @@ void convSingMFlintFq_nmod_mat(matrix m, fq_nmod_mat_t M, const fq_nmod_ctx_t fq
19+
{
20+
for(j=MATCOLS(m);j>0;j--)
21+
{
22+
- convSingPFlintnmod_poly_t (M->rows[i-1]+j-1, MATELEM(m,i,j),r);
23+
+ convSingPFlintnmod_poly_t (fq_nmod_mat_entry (M, i-1, j-1), MATELEM(m,i,j),r);
24+
}
25+
}
26+
}

0 commit comments

Comments
 (0)