From 05f5116e13c8a4f5f820c78c35944dd6d197d442 Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Sat, 14 Jun 2025 10:45:30 -0400 Subject: [PATCH] Use fq_nmod_mat_entry instead of row pointer (removed in flint 3.3.0) (#1278) fixes #1279 --- factory/FLINTconvert.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/factory/FLINTconvert.cc b/factory/FLINTconvert.cc index c36f6022d5..a4d86fd17e 100644 --- factory/FLINTconvert.cc +++ factory/FLINTconvert.cc @@ -652,7 +652,7 @@ convertFacCFMatrix2Fq_nmod_mat_t (fq_nmod_mat_t M, { for(j=m.columns();j>0;j--) { - convertFacCF2nmod_poly_t (M->rows[i-1]+j-1, m (i,j)); + convertFacCF2nmod_poly_t (fq_nmod_mat_entry(M, i-1, j-1), m (i,j)); } } } From 595d7167e6e019d45d9a4f1e18ae741df1f3c41d Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Sun, 15 Jun 2025 16:14:09 +0200 Subject: [PATCH] Use fq_nmod_mat_entry instead of row pointer (take 2) (#1280) --- libpolys/polys/flintconv.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libpolys/polys/flintconv.cc b/libpolys/polys/flintconv.cc index 89152f5e4d..277a62bf1b 100644 --- libpolys/polys/flintconv.cc +++ libpolys/polys/flintconv.cc @@ -331,7 +331,7 @@ void convSingMFlintFq_nmod_mat(matrix m, fq_nmod_mat_t M, const fq_nmod_ctx_t fq { for(j=MATCOLS(m);j>0;j--) { - convSingPFlintnmod_poly_t (M->rows[i-1]+j-1, MATELEM(m,i,j),r); + convSingPFlintnmod_poly_t (fq_nmod_mat_entry(M, i-1, j-1), MATELEM(m,i,j),r); } } }