From 59b9067519755792b1f70a902a3cbba5424fd3da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Wed, 11 May 2005 14:08:53 +0000 Subject: mtx_doInvert can now return whether it could invert the matrix or not (the function returns a valid matrix, even if inversion did not succeed) svn path=/trunk/externals/iem/iemmatrix/; revision=2950 --- src/iemmatrix.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/iemmatrix.h b/src/iemmatrix.h index 8401344..025358d 100644 --- a/src/iemmatrix.h +++ b/src/iemmatrix.h @@ -138,7 +138,8 @@ void mtx_binscalar_free(t_mtx_binscalar *x); /* some math */ /* invert a square matrix (row=col=rowcol) */ -t_matrixfloat*mtx_doInvert(t_matrixfloat*input, int rowcol); +/* if "error" is non-NULL, it's content will be set to 0 if the matrix was invertable, else to non-0 */ +t_matrixfloat*mtx_doInvert(t_matrixfloat*input, int rowcol, int*error); /* transpose a matrix */ t_matrixfloat*mtx_doTranspose(t_matrixfloat*output, int row, int col); /* multiply matrix A=[rowA*colA] with matrix B=[rowB*colB]; C=A*B; colA=rowB=colArowB */ -- cgit v1.2.1