diff options
Diffstat (limited to 'src/elementaryFunctions/cos/zcosa.c')
-rw-r--r-- | src/elementaryFunctions/cos/zcosa.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/elementaryFunctions/cos/zcosa.c b/src/elementaryFunctions/cos/zcosa.c new file mode 100644 index 00000000..9e76b850 --- /dev/null +++ b/src/elementaryFunctions/cos/zcosa.c @@ -0,0 +1,27 @@ +/* +** -*- C -*- +** +** zcosa.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Thu Dec 7 16:12:02 2006 jofret +** Last update Thu Dec 7 17:18:38 2006 jofret +** +** Copyright INRIA 2006 +*/ + +#ifndef STDC99 +#include "doubleComplex.h" +#else +#include <complex.h> +typedef double complex doubleComplex; +#endif + +doubleComplex zcoss(doubleComplex); + +void zcosa(doubleComplex* x, int strideX, doubleComplex* y, int strideY, int size) { + int i = 0; + for (i = 0; i < size; ++i) { + y[i] = zcoss(x[i]); + } +} |