diff options
author | torset | 2009-01-15 09:03:16 +0000 |
---|---|---|
committer | torset | 2009-01-15 09:03:16 +0000 |
commit | 7347e8f3e2715fcea8b2bcacdecd4ad32a2c691f (patch) | |
tree | 305d973e71e72513072f03861dcbf0de84460d74 /src/matrixOperations/includes | |
parent | 5a0b1a8aafdbad657ab35b427c3fdbf2e104aef0 (diff) | |
download | scilab2c-7347e8f3e2715fcea8b2bcacdecd4ad32a2c691f.tar.gz scilab2c-7347e8f3e2715fcea8b2bcacdecd4ad32a2c691f.tar.bz2 scilab2c-7347e8f3e2715fcea8b2bcacdecd4ad32a2c691f.zip |
add interfaces
Diffstat (limited to 'src/matrixOperations/includes')
-rw-r--r-- | src/matrixOperations/includes/determ.h | 8 | ||||
-rw-r--r-- | src/matrixOperations/includes/ones.h | 22 |
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 ); |