/* matdebug.c routines to help debug the mat package. * (C) 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 /* ========================================================================== */