path: root/src
diff options
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2005-05-11 14:08:53 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2005-05-11 14:08:53 +0000
commit59b9067519755792b1f70a902a3cbba5424fd3da (patch)
tree0ae698229b04bdec191d8916dfe3204769373ad8 /src
parent50ae9bff33a8e24236e2c27e6134d52dc3dc6301 (diff)
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
Diffstat (limited to 'src')
1 files changed, 2 insertions, 1 deletions
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 */