* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
static char sccsid
[] = "@(#)newmat.c 5.1 (Berkeley) %G%";
* newmat: return a brand new bitmat with the proper size.
* To get rid of it just call free.
int size
= ((cols
+ 7) >> 3) * rows
;
if (size
<= 0 && trace
) {
fprintf(trace
, "newmat: rows=%d, cols=%d\n", rows
, cols
);
fprintf(trace
, "newmat: malloc(%d) =", size
);
m
= (char *) malloc(size
);
fprintf(trace
, "%x\n", m
);