diff options
author | simon | 2009-08-24 11:04:41 +0000 |
---|---|---|
committer | simon | 2009-08-24 11:04:41 +0000 |
commit | 5814413d010ab5d43cfef5391f2444e3842ba004 (patch) | |
tree | 81f9b3d29881e4036c2cb4c038bb2d965c3b76c0 /src/c/matrixOperations/includes/matrixDivision.h | |
parent | 1480d3bdd424ea9f3af3702573fd5d6d60f0bb16 (diff) | |
download | scilab2c-5814413d010ab5d43cfef5391f2444e3842ba004.tar.gz scilab2c-5814413d010ab5d43cfef5391f2444e3842ba004.tar.bz2 scilab2c-5814413d010ab5d43cfef5391f2444e3842ba004.zip |
corrected OpCc interface
added convenience mixed types functions in matrixDivision header
Diffstat (limited to 'src/c/matrixOperations/includes/matrixDivision.h')
-rw-r--r-- | src/c/matrixOperations/includes/matrixDivision.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/c/matrixOperations/includes/matrixDivision.h b/src/c/matrixOperations/includes/matrixDivision.h index 9ea86d96..7702313b 100644 --- a/src/c/matrixOperations/includes/matrixDivision.h +++ b/src/c/matrixOperations/includes/matrixDivision.h @@ -62,6 +62,39 @@ EXTERN_MATOPS void cldivma( floatComplex* in1, int lines1, int columns1 , floatComplex* in2, int lines2, int columns2 , floatComplex* out ); +/*special case row vector /row vector => scalar */ +/* +** \brief Compute a division for double. +** \param in1 : input array. +** \param in2 : input array. +** \param size : size of in2 array. +** \return : scalar that contains the right division of the two vectors = in1 .* in2. +*/ +EXTERN_MATOPS double drdivv(double *in1, double *in2, int size2); + +EXTERN_MATOPS doubleComplex zrdivv(doubleComplex *in1, doubleComplex *in2, int size2); + +EXTERN_MATOPS doubleComplex zrdivzdv(doubleComplex *in1, double *in2, int size2); + +EXTERN_MATOPS doubleComplex zrdivdzv(double *in1, doubleComplex *in2, int size2); + +/* +** \brief Compute a division for float. +** \param in1 : input array. +** \param in2 : input array. +** \param size : size of in2 array. +** \return : scalar that contains the division of the two vectors = in1 .* in2. +*/ +EXTERN_MATOPS float srdivv(float *in1, float *in2, int size2); + +EXTERN_MATOPS floatComplex crdivv(floatComplex *in1, floatComplex *in2, int size2); + +EXTERN_MATOPS floatComplex crdivcsv(floatComplex *in1, float *in2, int size2); + +EXTERN_MATOPS floatComplex crdivscv(float *in1, floatComplex *in2, int size2); + + + #ifdef __cplusplus } /* extern "C" */ #endif |