/* matdebug.c routines to help debug the mat package. * (C) Copyright 1999 by John Halleck * All rights reserved. */ /* Version of August 16th, 1999 */ #include /* Standard IO */ #include "errors.h" /* Common error codes */ #include "mat.h" /* Matrix specific stuff */ #include "matdebug.h" /* And interfaces specific to this. */ /* --------------------- Printing ----------------------------------- */ error matprint (char *text, int rows, int cols, matrix toprint) { double *local; int i, j; if (text) printf ("%s\n", text); if (!toprint) return ERRnil; if (rows<1 || cols<1) return ERRsize; local = (double *) toprint; for (i=0; i fudge) return ERRfalse; } return NoError; }