diff options
author | siddhu8990 | 2015-08-20 01:20:26 +0530 |
---|---|---|
committer | siddhu8990 | 2015-08-20 01:20:26 +0530 |
commit | 222a3e39441ad408dacdc39d46d687dee5a6bf3c (patch) | |
tree | 04f0409dc26f4efb46d13b42e89d1979807bea50 /src/c/matrixOperations/includes/eye.h | |
parent | aba32804a6cbd6fb16e13e86364e643022a2941a (diff) | |
download | scilab2c-222a3e39441ad408dacdc39d46d687dee5a6bf3c.tar.gz scilab2c-222a3e39441ad408dacdc39d46d687dee5a6bf3c.tar.bz2 scilab2c-222a3e39441ad408dacdc39d46d687dee5a6bf3c.zip |
Support for disp added
Diffstat (limited to 'src/c/matrixOperations/includes/eye.h')
-rw-r--r-- | src/c/matrixOperations/includes/eye.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/c/matrixOperations/includes/eye.h b/src/c/matrixOperations/includes/eye.h index f7f2ef2f..95bdd797 100644 --- a/src/c/matrixOperations/includes/eye.h +++ b/src/c/matrixOperations/includes/eye.h @@ -16,6 +16,7 @@ #include "dynlib_matrixoperations.h" #include "floatComplex.h" #include "doubleComplex.h" +#include "ones.h" #ifdef __cplusplus extern "C" { @@ -42,6 +43,26 @@ extern "C" { #define zeyes(in) DoubleComplex(1, 0) /* +** \brief create a Uint8 Eye value +*/ +#define u8eyes(in) (uint8)1 + +/* +** \brief create a int8 Eye value +*/ +#define i8eyes(in) (int8)1 + +/* +** \brief create a Uint16 Eye value +*/ +#define u16eyes(in) (uint16)1 + +/* +** \brief create a int16 Eye value +*/ +#define i16eyes(in) (int16)1 + +/* ** \brief create a float Eye matrix */ EXTERN_MATOPS void seyea(float* in, int _iRows, int _iCols); @@ -61,6 +82,26 @@ EXTERN_MATOPS void ceyea(floatComplex* in, int _iRows, int _iCols); */ EXTERN_MATOPS void zeyea(doubleComplex* in, int _iRows, int _iCols); +/* +** \brief create a uint8 Eye matrix +*/ +EXTERN_MATOPS void u8eyea(uint8* in, int _iRows, int _iCols); + +/* +** \brief create a int8 Eye matrix +*/ +EXTERN_MATOPS void i8eyea(int8* in, int _iRows, int _iCols); + +/* +** \brief create a uint16 Eye matrix +*/ +EXTERN_MATOPS void u16eyea(uint16* in, int _iRows, int _iCols); + +/* +** \brief create a int16 Eye matrix +*/ +EXTERN_MATOPS void i16eyea(int16* in, int _iRows, int _iCols); + #ifdef __cplusplus } /* extern "C" */ #endif |