hp2FEM  0.1
Defines
src/metis-5.0/GKlib/gk_mkmemory.h File Reference

Templates for memory allocation routines. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define GK_MKALLOC(PRFX, TYPE)
#define GK_MKALLOC_PROTO(PRFX, TYPE)

Detailed Description

Templates for memory allocation routines.

Date:
Started 3/29/07
Author:
George
Version:
$Id: gk_mkmemory.h 2739 2007-11-24 09:13:22Z karypis $ 

Define Documentation

#define GK_MKALLOC_PROTO (   PRFX,
  TYPE 
)
Value:
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);\
 All Classes Files Functions Variables Typedefs Friends Defines