about 2-D arrays in GNU MP

souvik bhattacherjee souvik99 at gmail.com
Thu Jan 22 08:43:02 CET 2009

Though I have been successful in creating 2-D arrays in GNU MP which is as

mpz_t A[N][N];

mpz_array_init(A[0][0], NOC, SIZE);

I was not successful in passing this 2-D array to a function. Can anyone
please suggest how to achieve this.

I have tried some constructs. Say, this construct

void func( mpz_t  *A)
{ }

does not work. Neither does this one



void func( mpz_t A[ ][ ])
{ }


work out.

Souvik Bhattacherjee
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gmplib.org/list-archives/gmp-discuss/attachments/20090122/b9959f34/attachment.html 

More information about the gmp-discuss mailing list