NAME

verify_non_negative_int_matrix - (MACRO) Debug verification that an integer matrix is non-negative

SYNOPSIS

#include "l/l_int_matrix.h"

Example compile flags (system dependent):
  -DLINUX_X86_64 -DLINUX_X86_64_OPTERON  -DGNU_COMPILER 
   -I/home/kobus/include
   -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 verify_non_negative_int_matrix
(
	const Int_matrix *mp,
	int *failure_ptr
);

DESCRIPTION

When TEST is defined (typically this is "development" mode), verify_non_negative_matrix checks that all elements of a integer matrix are non-negative. If invalid numbers are found, then they are set to zero, and a warning is printed. In addition, if the second argument is not NULL, then the integer pointed to it is set to either NO_ERROR or ERROR depending on whether the verification passed or failed. When TEST is not defined (typically "production" mode), then verify_non_negative_matrix becomes a NOP.

DISCLAIMER

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

AUTHOR

Kobus Barnard

DOCUMENTER

Kobus Barnard

SEE ALSO

Int_matrix , Int_matrix_vector , Int_vector_matrix , same_int_matrix_dimensions , Int_matrix_vector_vector