summaryrefslogtreecommitdiff
path: root/src/matrixOperations/includes
diff options
context:
space:
mode:
Diffstat (limited to 'src/matrixOperations/includes')
-rw-r--r--src/matrixOperations/includes/determ.h8
-rw-r--r--src/matrixOperations/includes/ones.h22
2 files changed, 26 insertions, 4 deletions
diff --git a/src/matrixOperations/includes/determ.h b/src/matrixOperations/includes/determ.h
index ec1df30c..e9276a70 100644
--- a/src/matrixOperations/includes/determ.h
+++ b/src/matrixOperations/includes/determ.h
@@ -20,13 +20,13 @@
-double ddeterma (double *in, int size);
+double ddeterma (double *in, int rows);
-float sdeterma (float *in, int size);
+float sdeterma (float *in, int rows);
-doubleComplex zdeterma (doubleComplex *in, int size);
+doubleComplex zdeterma (doubleComplex *in, int rows);
-floatComplex cdeterma (floatComplex *in, int size);
+floatComplex cdeterma (floatComplex *in, int rows);
#endif /* __DETERM_H__ */
diff --git a/src/matrixOperations/includes/ones.h b/src/matrixOperations/includes/ones.h
index 93fe1c62..b4d6eef4 100644
--- a/src/matrixOperations/includes/ones.h
+++ b/src/matrixOperations/includes/ones.h
@@ -18,6 +18,28 @@
#include "doubleComplex.h"
/*
+** \brief create a float one value
+*/
+#define seyes(in) 1.0f
+
+/*
+** \brief create a Double one value
+*/
+#define deyes(in) 1.0
+
+/*
+** \brief create a float complex one value
+*/
+#define ceyes(in) FloatComplex(1.0f, 0)
+
+/*
+** \brief create a Double complex one value
+*/
+#define zeyes(in) DoubleComplex(1, 0)
+
+
+
+/*
** \brief create a float matrix full of one
*/
void sonesa ( float* in , int rows , int cols );