[GRASS-user] GRASS Dynamic allocation of multi dimensional array

2008-08-09 Thread gianluca massei
Hy list, could anybody help me to declare a 3D matrix in C GRASS module. I've to load several raster map with same location but I've an error in run time if I declare with G_malloc/G_calloc like that: double ***mat; mat=(double***)G_malloc(ndimension*(sizeof(double)); thanks Gianluca

Re: [GRASS-user] GRASS Dynamic allocation of multi dimensional array

2008-08-09 Thread Glynn Clements
gianluca massei wrote: could anybody help me to declare a 3D matrix in C GRASS module. I've to load several raster map with same location but I've an error in run time if I declare with G_malloc/G_calloc like that: double ***mat; mat=(double***)G_malloc(ndimension*(sizeof(double)); To