diff options
author | cnlohr <lohr85@gmail.com> | 2018-03-17 14:21:20 -0400 |
---|---|---|
committer | cnlohr <lohr85@gmail.com> | 2018-03-17 14:21:20 -0400 |
commit | 04bd16aeb391e67716344268cf0f43d1f31f180a (patch) | |
tree | 2efb24782dc15a994c487e01e0a2ba2e31005721 /redist/dclhelpers.h | |
parent | 497e65e339edcc77bd272b97b9c1b1b5217a24b6 (diff) | |
download | libsurvive-04bd16aeb391e67716344268cf0f43d1f31f180a.tar.gz libsurvive-04bd16aeb391e67716344268cf0f43d1f31f180a.tar.bz2 |
Update dcl and test.
Diffstat (limited to 'redist/dclhelpers.h')
-rw-r--r-- | redist/dclhelpers.h | 8 |
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) |