summaryrefslogtreecommitdiff
path: root/src/elementaryFunctions/tanh/ztanha.c
blob: 36aaeb381e82e4735e38c7858fffc639b9851959 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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]);
  }
}