diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2005-10-24 17:06:37 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2005-10-24 17:06:37 +0000 |
commit | 21ae6d6baaefe9a1d4e7a9189b6f8d9ef8cc091c (patch) | |
tree | 7410bd5530f8386ed5e9935c83be3542a1164ed6 /src/mtx_inverse.c | |
parent | 3841ef753439cdf3bfcb37e54d39174cb0426f69 (diff) |
make errors findable with "last error"
svn path=/trunk/externals/iem/iemmatrix/; revision=3764
Diffstat (limited to 'src/mtx_inverse.c')
-rw-r--r-- | src/mtx_inverse.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mtx_inverse.c b/src/mtx_inverse.c index 9b8939b..f09c7b0 100644 --- a/src/mtx_inverse.c +++ b/src/mtx_inverse.c @@ -77,7 +77,6 @@ t_matrixfloat* mtx_doInvert(t_matrixfloat*input, int rowcol, int*error){ } } } - if (ok)post("mtx_inverse: couldn't really invert the matrix !!! %d error%c", ok, (ok-1)?'s':0); if(error!=0)*error=ok; return inverted; @@ -134,7 +133,10 @@ static void mtx_inverse_matrix(t_matrix *x, t_symbol *s, int argc, t_atom *argv) /* 3b destroy the buffers */ freebytes(original, sizeof(t_matrixfloat)*row*col); - if(error)outlet_bang(x->x_outlet); + if(error){ + outlet_bang(x->x_outlet); + pd_error(x, "mtx_inverse: couldn't really invert the matrix !!! %d error%c", error, (error-1)?'s':0); + } /* 3c output the atombuf; */ matrix_bang(x); |