27 #include <grass/gis.h> 
   43     return (
double *)G_calloc(n, 
sizeof(
double));
 
   65     m = (
double **)G_calloc(rows, 
sizeof(
double *));
 
   66     m[0] = (
double *)G_calloc(rows * cols, 
sizeof(
double));
 
   67     for (i = 1; i < rows; i++)
 
   68         m[i] = m[i - 1] + cols;
 
   87     return (
float *)G_calloc(n, 
sizeof(
float));
 
  109     m = (
float **)G_calloc(rows, 
sizeof(
float *));
 
  110     m[0] = (
float *)G_calloc(rows * cols, 
sizeof(
float));
 
  111     for (i = 1; i < rows; i++)
 
  112         m[i] = m[i - 1] + cols;
 
void G_free(void *buf)
Free allocated memory. 
 
double ** G_alloc_matrix(int rows, int cols)
Matrix memory allocation. 
 
float * G_alloc_fvector(size_t n)
Floating point vector memory allocation. 
 
void G_free_fmatrix(float **m)
Floating point matrix memory deallocation. 
 
void G_free_vector(double *v)
Vector memory deallocation. 
 
void G_free_matrix(double **m)
Matrix memory deallocation. 
 
float ** G_alloc_fmatrix(int rows, int cols)
Floating point matrix memory allocation. 
 
void G_free_fvector(float *v)
Vector memory deallocation. 
 
double * G_alloc_vector(size_t n)
Vector matrix memory allocation.