file_db_mat - (MACRO) Debug printing of a matrix


#include "m/m_debug.h"

Example compile flags (system dependent):
   -L/home/kobus/misc/load/linux_x86_64_opteron -L/usr/lib/x86_64-linux-gnu
  -lKJB                               -lfftw3  -lgsl -lgslcblas -ljpeg  -lSVM -lstdc++                    -lpthread -lSLATEC -lg2c    -lacml -lacml_mv -lblas -lg2c      -lncursesw 

void file_db_mat(const Matrix *mp);


This macro prints a matrix to a file in the current directory with the same name as the variable. The file and line number of the matrix being output to the are printed on standard error. Its behaviour is a function of the debugging level, which can be set through the option "debug" if the KJB library options are being made available to the user. The macro is available for both development and production code, but since the default debug level is different in the two cases, the default behaviour is different. The default level for development code is 2, whereas for production code it is 0. If the debug level is 1 (or more), then the matrix is output to a file which has the same name as the variable. If the debug level is 3 (or more) the output is full precision.


This macro is only avaible with compilers which have "hash mark substitution. With compilers that don't, a message to this effect is printed instead.


db_mat, db_rv, db_cv, dbm, dbo, dbp, dbx, dbc, dbf, dbi, dbr, dbw, dbe, dbs


This software is not adequatedly tested. It is recomended that results are checked independantly where appropriate.


Kobus Barnard


Kobus Barnard


db_rv , db_cv , file_db_cv , db_mat