Skip to content

Commit

Permalink
Make _SI_Matbigintmat work for mutable bigintmat
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin committed Aug 28, 2014
1 parent bc21197 commit 793b4c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/matrix.cc
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ Obj Func_SI_bigintmat(Obj self, Obj m)
// TODO: get rid of _SI_Matbigintmat and use SI_ToGAP instead ?
Obj Func_SI_Matbigintmat(Obj self, Obj im)
{
// TODO: This function is untested! add test cases!!!
if (!ISSINGOBJ(SINGTYPE_BIGINTMAT_IMM,im)) {
if (!(ISSINGOBJ(SINGTYPE_BIGINTMAT_IMM,im) ||
ISSINGOBJ(SINGTYPE_BIGINTMAT,im))) {
ErrorQuit("im must be a singular bigintmat", 0L, 0L);
return Fail;
}
Expand Down
2 changes: 1 addition & 1 deletion tst/matelm.tst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ gap>
gap>
gap>
gap> m2 := SI_bigintmat([[1,2,3],[4,5,6]] * 7^15);
<singular intmat:[ [ 4747561509943, 9495123019886, 14242684529829 ], [ 1899024\
<singular bigintmat:[ [ 4747561509943, 9495123019886, 14242684529829 ], [ 1899024\
6039772, 23737807549715, 28485369059658 ] ]>
gap> _SI_MatElm(m2, 1, 3);
14242684529829
Expand Down

0 comments on commit 793b4c4

Please sign in to comment.