41 return (
double *)
G_calloc(n,
sizeof(
double));
62 m = (
double **)
G_calloc(rows,
sizeof(
double *));
63 m[0] = (
double *)
G_calloc((
size_t)rows * cols,
sizeof(double));
64 for (i = 1; i < rows; i++)
65 m[i] = m[i - 1] + cols;
83 return (
float *)
G_calloc(n,
sizeof(
float));
104 m = (
float **)
G_calloc(rows,
sizeof(
float *));
105 m[0] = (
float *)
G_calloc((
size_t)rows * cols,
sizeof(float));
106 for (i = 1; i < rows; i++)
107 m[i] = m[i - 1] + cols;
void G_free_fmatrix(float **m)
Floating point matrix memory deallocation.
double ** G_alloc_matrix(int rows, int cols)
Matrix memory allocation.
void G_free_vector(double *v)
Vector memory deallocation.
double * G_alloc_vector(size_t n)
Vector matrix memory allocation.
float ** G_alloc_fmatrix(int rows, int cols)
Floating point matrix memory allocation.
void G_free_fvector(float *v)
Vector memory deallocation.
void G_free_matrix(double **m)
Matrix memory deallocation.
float * G_alloc_fvector(size_t n)
Floating point vector memory allocation.
void G_free(void *)
Free allocated memory.