20 void **
newMatrix(
size_t nrow,
size_t ncol,
size_t s);
23 #define newVector(n,s) newBlock((n)*(s))
25 #define freeBlock(v) freeBlock_((void **)(v))
27 #define newDoubleVector(n) (double *)(newVector((size_t)(n),sizeof(double)))
28 #define newFloatVector(n) (float *)(newVector((size_t)(n),sizeof(float)))
29 #define newShortVector(n) (short *)(newVector((size_t)(n),sizeof(short)))
30 #define newLongVector(n) (long *)(newVector((size_t)(n),sizeof(long)))
31 #define newIntVector(n) (int *)(newVector((size_t)(n),sizeof(int)))
32 #define newCharVector(n) (char *)(newVector((size_t)(n),sizeof(char)))
34 #define newDoubleMatrix(r,c) (double **)(newMatrix((size_t)(r),(size_t)(c),sizeof(double)))
35 #define newFloatMatrix(r,c) (float **)(newMatrix((size_t)(r),(size_t)(c),sizeof(float)))
36 #define newShortMatrix(r,c) (short **)(newMatrix((size_t)(r),(size_t)(c),sizeof(short)))
37 #define newLongMatrix(r,c) (long **)(newMatrix((size_t)(r),(size_t)(c),sizeof(long)))
38 #define newIntMatrix(r,c) (int **)(newMatrix((size_t)(r),(size_t)(c),sizeof(int)))
39 #define newCharMatrix(r,c) (char **)(newMatrix((size_t)(r),(size_t)(c),sizeof(char)))
40 #define freeMatrix(m) freeMatrix_((void ***)(m))
43 #error mem.h included twice
void freeMatrix_(void ***m)
void freeBlock_(void **v)
void ** newMatrix(size_t nrow, size_t ncol, size_t s)
void * newBlock(size_t s)
GB_write_int const char s