Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it

563641 views
1
#include "typedef.h"
2
#include "gmp.h"
3
/* #include "gmp-impl.h" */
4
5
/**************************************************************************\
6
@---------------------------------------------------------------------------
7
@---------------------------------------------------------------------------
8
@ FILE: dump_MP_mat.c
9
@---------------------------------------------------------------------------
10
@---------------------------------------------------------------------------
11
@
12
\**************************************************************************/
13
14
15
/**************************************************************************\
16
@---------------------------------------------------------------------------
17
@ void *dump_MP_mat(Mat,rows,cols,comment)
18
@ MP_int **Mat;
19
@ int rows,
20
@ cols;
21
@ char *comment;
22
@
23
@ dumps an array of MP_int to stdout
24
@
25
@---------------------------------------------------------------------------
26
@
27
\**************************************************************************/
28
void dump_MP_mat(Mat,rows,cols,comment)
29
MP_INT **Mat;
30
31
int rows,
32
cols;
33
34
char *comment;
35
36
{
37
38
int i,j;
39
40
printf("%dx%d %% %s\n",rows,cols,comment);
41
for (i=0;i<rows;i++){
42
for (j=0;j<cols;j++){
43
mpz_out_str(stdout,10,&Mat[i][j]);
44
printf(" ");
45
}
46
printf("\n");
47
}
48
}
49
50