[ncl-talk] low memory algorithm for sorting ? how large is INT_MAX ?

Adam Herrington adam.herrington at stonybrook.edu
Fri Oct 20 15:49:39 MDT 2017


I am trying to sort with the function 'dim_pqsort', but my array is too
large. I get an error saying that 1 or more dimensions is larger than
INT_MAX.

If anyone has a solution to this problem, I'm all ears.

My thinking is that I can create an array of sample indices through
'generate_sample_indices', and make the number of sample indices = INT_MAX.
Does anyone know how large INT_MAX is ?

Adam Herrington
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20171020/150982f9/attachment.html>


More information about the ncl-talk mailing list