/* matdebug.h routines to help debug the mat package. * (C) Copyright 1999 by John Halleck * All rights reserved. */ /* Version of August 16th, 1999 */ #ifndef MATDEBUG #define MATDEBUG 1 #include "errors.h" /* Common error codes */ #include "mat.h" /* Matrix specific stuff */ /* --------------------- Printing ----------------------------------- */ /* Print a matrix */ extern error matprint (char *text, int rows, int cols, matrix toprint); /* Print two matrices side by side */ extern error matcprint (char *text, int rows, int cols, matrix one, matrix two); /* ---------------------- Equality ------------------------------- */ extern error matiseq (int rows, int cols, matrix a, matrix b); /* Returns NoError if true */ /* ----------- "Close enough" ----------------------------------- */ /* Only the matrix form has been done here, if you need the row * form use mataeq (1, size, row) if you need the column form * then use mataeq (size, 1, col). * This routine tells you whether two matrices are the same, with * the limits of a fudge factor. */ extern error matisaeq (int rows, int cols, matrix a, matrix b, double fudge); /* Returns NoError if true */ #endif