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