diff options
author | jofret | 2007-10-22 15:20:53 +0000 |
---|---|---|
committer | jofret | 2007-10-22 15:20:53 +0000 |
commit | 6bd1eb6d55bdee6969a48a33e409a866914b0194 (patch) | |
tree | ce226bbd488caaa46a748bd324a3a429f1faf293 /src/auxiliaryFunctions | |
parent | d6f72508a57b15ba29cde6fdccad2c26afe49653 (diff) | |
download | scilab2c-6bd1eb6d55bdee6969a48a33e409a866914b0194.tar.gz scilab2c-6bd1eb6d55bdee6969a48a33e409a866914b0194.tar.bz2 scilab2c-6bd1eb6d55bdee6969a48a33e409a866914b0194.zip |
Moving prototype
Diffstat (limited to 'src/auxiliaryFunctions')
-rw-r--r-- | src/auxiliaryFunctions/includes/abs.h | 10 | ||||
-rw-r--r-- | src/auxiliaryFunctions/includes/sign.h | 57 |
2 files changed, 61 insertions, 6 deletions
diff --git a/src/auxiliaryFunctions/includes/abs.h b/src/auxiliaryFunctions/includes/abs.h index 24de8a1f..2d9ca926 100644 --- a/src/auxiliaryFunctions/includes/abs.h +++ b/src/auxiliaryFunctions/includes/abs.h @@ -5,7 +5,7 @@ ** Made by Bruno JOFRET <bruno.jofret@inria.fr> ** ** Started on Thu Feb 8 10:12:17 2007 jofret -** Last update Wed Apr 25 11:26:42 2007 jofret +** Last update Mon Oct 22 10:44:49 2007 bruno ** ** Copyright INRIA 2007 */ @@ -56,7 +56,7 @@ double zabss(doubleComplex in); ** \param in : the float array we must determine abs. ** \param out : the float array result. **/ -void sabsa(float *in, float* out, int size); +void sabsa(float *in, int size, float* out); /** ** \brief Double Array Absolute Value function @@ -64,7 +64,7 @@ void sabsa(float *in, float* out, int size); ** \param in : the double array we must determine abs. ** \param out : the double array result. **/ -void dabsa(double *in, double* out, int size); +void dabsa(double *in, int size, double* out); /** ** \brief Float Complex Array Absolute Value function @@ -72,7 +72,7 @@ void dabsa(double *in, double* out, int size); ** \param in : the float complex array we must determine abs i.e. module. ** \param out : the float complex array result i.e out[n] = |in[n]|. **/ -void cabsa(floatComplex *in, float* out, int size); +void cabsa(floatComplex *in, int size, float* out); /** ** \brief Double Complex Array Absolute Value function @@ -80,6 +80,6 @@ void cabsa(floatComplex *in, float* out, int size); ** \param in : the double complex array we must determine abs i.e. module. ** \param out : the double complex array result i.e out[n] = |in[n]|. **/ -void zabsa(doubleComplex *in, double* out, int size); +void zabsa(doubleComplex *in, int size, double* out); #endif /* !__ABS_H__ */ diff --git a/src/auxiliaryFunctions/includes/sign.h b/src/auxiliaryFunctions/includes/sign.h index 5b84f47b..0864dce2 100644 --- a/src/auxiliaryFunctions/includes/sign.h +++ b/src/auxiliaryFunctions/includes/sign.h @@ -5,7 +5,7 @@ ** Made by Bruno JOFRET <bruno.jofret@inria.fr> ** ** Started on Thu Feb 8 10:12:17 2007 jofret -** Last update Tue Mar 20 14:58:52 2007 jofret +** Last update Fri Sep 7 17:37:57 2007 bruno ** ** Copyright INRIA 2007 */ @@ -15,6 +15,9 @@ #include <math.h> +#include "floatComplex.h" +#include "doubleComplex.h" + /** ** \brief Float Signe function ** Determine the sine of in (assume that 0 is positive). @@ -31,4 +34,56 @@ int ssigns(float in); **/ int dsigns(double in); +/** + ** \brief Float Complex Signe function + ** Determine the sine of in (assume that 0 is positive). + ** \param in : the float we must determine sign. + ** \return -1 or +1 depending on the sign of in. + **/ +int csigns(floatComplex in); + +/** + ** \brief Double Complex Signe function + ** Determine the sine of in (assume that 0 is positive). + ** \param in : the double we must determine sign. + ** \return -1 or +1 depending on the sign of in. + **/ +int zsigns(doubleComplex in); + +/** + ** \brief Float Signe Array function + ** Determine the sine of an array in (assume that 0 is positive). + ** \param in : the float array we must determine sign. + ** \param size : the number of elements. + ** \return -1 or +1 depending on the sign of in elements. + **/ +int ssigna(float *in, int size); + +/** + ** \brief Double Signe Array function + ** Determine the sine of an array in (assume that 0 is positive). + ** \param in : the double array we must determine sign. + ** \param size : the number of elements. + ** \return -1 or +1 depending on the sign of in elements. + **/ +int dsigna(double *in, int size); + +/** + ** \brief Float Signe Complex Array function + ** Determine the sine of an array in (assume that 0 is positive). + ** \param in : the float complex array we must determine sign. + ** \param size : the number of elements. + ** \return -1 or +1 depending on the sign of in elements. + **/ +int csigna(floatComplex *in, int size); + +/** + ** \brief Double Signe Complex Array function + ** Determine the sine of an array in (assume that 0 is positive). + ** \param in : the double complex array we must determine sign. + ** \param size : the number of elements. + ** \return -1 or +1 depending on the sign of in elements. + **/ +int zsigna(doubleComplex *in, int size); + #endif /* !__SIGN_H__ */ |