convolve_matrix - Convolves matrix with an arbitrary mask
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 Matrix *in_mp,
const Matrix *mask_mp
This routine convolves the matrix pointed to by in_mp with the mask mask_mp,
putting the result into *out_mpp.
If *out_mpp is NULL, then an matrix of the appropriate size is created, if
it is the wrong size, then it is resized, and if it is the right size, the
storage is recycled.
The results near the boundaries are computed by assuming the input matrix
reflects itself at the edges.
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.