[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Array size in GMP!!
From: |
Surya Chandra Rao Gandreddi |
Subject: |
Array size in GMP!! |
Date: |
Sat, 10 Jan 2004 01:08:04 +0530 (IST) |
Hi,
At present we are trying implementing the AKS Algorithm (Paper
"Primes is in P", August 6th 2002). And for that we are using the gmp
library, which is very useful to us. But we have a problem with the array
size, can we have any number of elements in the array like we can any
number of digits in an integer ??
If we are writing the following code ....
-------------------------------------------------------
mpz_t *arr;
mpz_t Size;
mpz_init(arr);
mpz_init_set_ui(Size,1000);
arr = (mpz_t *)malloc(sizeof(mpz_t) * Size);
// Here we are trying to allocate "Size" memory to "arr",,, it
says "error: invalid operands to binary *"
-------------------------------------------------------
Its working if "Size" unsigned long integer, But we need the array to
be much bigger than the unsigned long integer,..... so I would appreciate any
input you can provide.
Thank you very much,
Ashok
Surya
--
life is SHORT, where is the time to HATE each other.`
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Array size in GMP!!,
Surya Chandra Rao Gandreddi <=