vecdebug.h: (Matching .c file)


/* matdebug.c routines to help debug the mat package.
 * © Copyright 1999 by John Halleck
 * All rights reserved.
 */
/* Version of August 18th, 1999 */

#ifndef VECDEBUG
#define VECDEBUG 1

#include "errors.h"
  /* Common error codes */

#include "vec.h"
  /* Vector specific stuff */

/* --------------------- Printing ------------------------------------------- */

extern error vecprint (char *text, int size, vector toprint);
/* Can return: 
 * ERRnil  - can't print nil vector.
 * ERRsize - vector size must be positive.
 */

/* --------------- Assert  Equality  ---------------------------------------- */
/* These return:
 * ERRnil   - Can't compare nil vectors.
 * ERRsize  - Vectors must have positive sizes.
 * ERRfalse - Vectors were not equal.
 */

/* equal */
extern error veciseq  (int size, vector a, vector b);

/* Approximately equal */
extern error vecisaeq (int size, vector a, vector b, double fudge);

#endif
/* ========================================================================== */

Go to ...


This page is http://www.cc.utah.edu/~nahaj/cave/survey/code/c/vecdebug.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