aboutsummaryrefslogtreecommitdiff
path: root/redist/dclhelpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'redist/dclhelpers.h')
-rw-r--r--redist/dclhelpers.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/redist/dclhelpers.h b/redist/dclhelpers.h
index 8779e1a..b4acec8 100644
--- a/redist/dclhelpers.h
+++ b/redist/dclhelpers.h
@@ -3,11 +3,17 @@
#define DCL_FLOAT FLT
+//Use this macro to safely
+#define DMS( m ) ((m)[0]), (sizeof((m)[0])/sizeof((m)[0][0]))
+
/* Prints matrix A of size[n][m] */
void dclPrint( const DCL_FLOAT * A, int Ac, int n, int m );
/* Returns the identity matrix */
-void dclIdentity( DCL_FLOAT * I, int Ic, int n );
+void dclIdentity( DCL_FLOAT * I, int Ic, int m, int n );
+
+/* Returns the zero matrix */
+void dclZero( DCL_FLOAT * I, int Ic, int m, int n );
/* R = Transpose(A)
A is (n by m)