SetDims in NTL is not working

63 views Asked by At

I'm trying to use matrix functions in NTL, mat_ZZ_p . But when I try to set the dimension using SetDims() fucntion, it hangs. It is working for smaller numbers like 5 , 10 etc, But it fails even for 10000. It hangs the whole system. Here is the code snippet :

int main()
{
    ZZ p;
    long int index;
    cin >> p;
    ZZ_p::init(p);
    mat_ZZ_p A; 
    long dime = 9999;
    A.SetDims(dime,dime);
    return 0;
}
0

There are 0 answers