summaryrefslogtreecommitdiff
path: root/src/matrixOperations/includes/eye.h
diff options
context:
space:
mode:
authorjofret2008-11-04 08:27:25 +0000
committerjofret2008-11-04 08:27:25 +0000
commit34662c11ea9ad8d942c917145c8fb05e20e3d213 (patch)
tree0cdf1269dc02d5bff620572792cb9c6a82d945b5 /src/matrixOperations/includes/eye.h
parent2be2cd11107322ac6b9ed1870191686d51a71410 (diff)
downloadscilab2c-34662c11ea9ad8d942c917145c8fb05e20e3d213.tar.gz
scilab2c-34662c11ea9ad8d942c917145c8fb05e20e3d213.tar.bz2
scilab2c-34662c11ea9ad8d942c917145c8fb05e20e3d213.zip
Adding scalar eye functions
Diffstat (limited to 'src/matrixOperations/includes/eye.h')
-rw-r--r--src/matrixOperations/includes/eye.h25
1 files changed, 23 insertions, 2 deletions
diff --git a/src/matrixOperations/includes/eye.h b/src/matrixOperations/includes/eye.h
index 107074fb..9d78f590 100644
--- a/src/matrixOperations/includes/eye.h
+++ b/src/matrixOperations/includes/eye.h
@@ -17,23 +17,44 @@
#include "doubleComplex.h"
/*
+** \brief create a float Eye value
+*/
+#define seyes(in) 1.0f
+
+/*
+** \brief create a Double Eye value
+*/
+#define deyes(in) 1.0
+
+/*
+** \brief create a float complex Eye value
+*/
+#define ceyes(in) FloatComplex(1.0f, 0)
+
+/*
+** \brief create a Double complex Eye value
+*/
+#define zeyes(in) DoubleComplex(1, 0)
+
+/*
** \brief create a float Eye matrix
*/
void seyea(float* in, int _iRows, int _iCols);
+
/*
** \brief create a Double Eye matrix
*/
void deyea(double* in, int _iRows, int _iCols);
+
/*
** \brief create a float complex Eye matrix
*/
void ceyea(floatComplex* in, int _iRows, int _iCols);
+
/*
** \brief create a Double complex Eye matrix
*/
void zeyea(doubleComplex* in, int _iRows, int _iCols);
-
-
#endif /* !__EYE_H__ */