GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it
#include "typedef.h"1#include "gmp.h"2/* #include "gmp-impl.h" */34/**************************************************************************\5@---------------------------------------------------------------------------6@---------------------------------------------------------------------------7@ FILE: dump_MP_mat.c8@---------------------------------------------------------------------------9@---------------------------------------------------------------------------10@11\**************************************************************************/121314/**************************************************************************\15@---------------------------------------------------------------------------16@ void *dump_MP_mat(Mat,rows,cols,comment)17@ MP_int **Mat;18@ int rows,19@ cols;20@ char *comment;21@22@ dumps an array of MP_int to stdout23@24@---------------------------------------------------------------------------25@26\**************************************************************************/27void dump_MP_mat(Mat,rows,cols,comment)28MP_INT **Mat;2930int rows,31cols;3233char *comment;3435{3637int i,j;3839printf("%dx%d %% %s\n",rows,cols,comment);40for (i=0;i<rows;i++){41for (j=0;j<cols;j++){42mpz_out_str(stdout,10,&Mat[i][j]);43printf(" ");44}45printf("\n");46}47}484950