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