From 04bd16aeb391e67716344268cf0f43d1f31f180a Mon Sep 17 00:00:00 2001 From: cnlohr Date: Sat, 17 Mar 2018 14:21:20 -0400 Subject: Update dcl and test. --- redist/dclhelpers.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'redist/dclhelpers.h') 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) -- cgit v1.2.3