matdebug.h: (Matching .c file)


/* matdebug.h routines to help debug the mat package.
 * © 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

Go to ...


This page is http://www.cc.utah.edu/~nahaj/cave/survey/code/c/matdebug.h.html
© Copyright 2000 by John Halleck, All Rights Reserved.
This snapshot was last modified on August 23rd, 2000
And the underlying file was last modified on May 11th, 2000