hp2FEM
0.1
|
Templates for memory allocation routines. More...
Go to the source code of this file.
Defines | |
#define | GK_MKALLOC(PRFX, TYPE) |
#define | GK_MKALLOC_PROTO(PRFX, TYPE) |
Templates for memory allocation routines.
$Id: gk_mkmemory.h 2739 2007-11-24 09:13:22Z karypis $
#define GK_MKALLOC_PROTO | ( | PRFX, | |
TYPE | |||
) |
TYPE *PRFX ## malloc(size_t n, char *msg);\ TYPE *PRFX ## realloc(TYPE *ptr, size_t n, char *msg);\ TYPE *PRFX ## smalloc(size_t n, TYPE ival, char *msg);\ TYPE *PRFX ## set(size_t n, TYPE val, TYPE *x);\ TYPE *PRFX ## copy(size_t n, TYPE *a, TYPE *b);\ TYPE **PRFX ## AllocMatrix(size_t ndim1, size_t ndim2, TYPE value, char *errmsg);\ void PRFX ## FreeMatrix(TYPE ***r_matrix, size_t ndim1, size_t ndim2);\ void PRFX ## SetMatrix(TYPE **matrix, size_t ndim1, size_t ndim2, TYPE value);\