40 return (
int *)
G_calloc(n,
sizeof(
int));
60 m = (
int **)
G_calloc(rows,
sizeof(
int *));
61 m[0] = (
int *)
G_calloc((
size_t)rows * cols,
sizeof(int));
62 for (i = 1; i < rows; i++)
63 m[i] = m[i - 1] + cols;
void G_free(void *)
Free allocated memory.
int ** G_alloc_imatrix(int rows, int cols)
Matrix memory allocation.
void G_free_imatrix(int **m)
Matrix memory deallocation.
void G_free_ivector(int *v)
Vector memory deallocation.
int * G_alloc_ivector(size_t n)
Vector matrix memory allocation.