#include #include #include #include #include #include void *ckalloc(size_t bytes) { register void *ret; void die(char *format, ... ); if( !(ret = malloc(bytes)) ) die("Out of memory\n"); return ret; } float **FloatMatrix(int M, int N) { int m; float **Matrix; Matrix = (float **)ckalloc(M*sizeof(float *)); for( m=0; m