From 34662c11ea9ad8d942c917145c8fb05e20e3d213 Mon Sep 17 00:00:00 2001 From: jofret Date: Tue, 4 Nov 2008 08:27:25 +0000 Subject: Adding scalar eye functions --- src/matrixOperations/includes/eye.h | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) (limited to 'src/matrixOperations/includes/eye.h') 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 @@ -16,24 +16,45 @@ #include "floatComplex.h" #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__ */ -- cgit