Skip to content

Commit b81bcca

Browse files
committedApr 8, 2015
minor fix to previous
1 parent 56eb745 commit b81bcca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎libsrc/mat.cc

+3-3
Original file line numberDiff line numberDiff line change
@@ -1539,7 +1539,7 @@ void mod_mat_from_mat(mod_mat& A, const mat& M, scalar pr)
15391539
mod_mat_entry(A,i,j) = (uscalar)posmod(M(i+1,j+1),pr);
15401540
}
15411541

1542-
mat mat_from_mod_mat(const mod_mat& A)
1542+
mat mat_from_mod_mat(const mod_mat& A, scalar a) // scalar just to fix return type
15431543
{
15441544
long nr=mod_mat_nrows(A), nc=mod_mat_ncols(A);
15451545

@@ -1574,7 +1574,7 @@ mat ref_via_flint(const mat& M, scalar pr)
15741574
#endif
15751575

15761576
// copy back to a new matrix for return:
1577-
mat ans = mat_from_mod_mat(A);
1577+
mat ans = mat_from_mod_mat(A, pr);
15781578

15791579
// clear the flint matrix and return:
15801580
mod_mat_clear(A);
@@ -1640,7 +1640,7 @@ mat ref_via_flint(const mat& M, vec& pcols, vec& npcols,
16401640
}
16411641

16421642
// copy back to a new matrix for return:
1643-
mat ans = mat_from_mod_mat(A).slice(rk,nc);
1643+
mat ans = mat_from_mod_mat(A,pr).slice(rk,nc);
16441644

16451645
// clear the flint matrix and return:
16461646
mod_mat_clear(A);

0 commit comments

Comments
 (0)
Please sign in to comment.