read_int_matrix - Reads an integer matrix from a file
Example compile flags (system dependent):
-DLINUX_X86_64 -DLINUX_X86_64_OPTERON -DGNU_COMPILER
-lKJB -lfftw3 -lgsl -lgslcblas -ljpeg -lSVM -lstdc++ -lpthread -lSLATEC -lg2c -lacml -lacml_mv -lblas -lg2c -lncursesw
const char *file_name
This routine reads an integer matrix from a file. If the file_name is NULL
or a null string, then stdin is assumed. If this is the case, and if the
source is not a file (i.e. a pipe), then this routine will fail.
Several read strategies are tried until one succeeds. The first strategy is
to assume the file is a matlab integer matrix (see
fp_read_int_matrix_from_matlab_file(3)). The second strategy is to assume
that the file has a header file (see fp_read_int_matrix_with_header(3)).The
final strategy is to assume that the file is a formatted ascii file, and the
matrix dimensions are deduced from the number of rows and columns. The
number of columns in each row must be the same.
The integer matrix *result_mpp is created or resized as necessary.
NO_ERROR on success, and ERROR on failure with an appropriate error
message being set.
This software is not adequatedly tested. It is recomended that
results are checked independantly where appropriate.
Lindsay Martin and Kobus Barnard