summaryrefslogtreecommitdiff
path: root/src/elementaryFunctions/cosh/ccosha.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/elementaryFunctions/cosh/ccosha.c')
-rw-r--r--src/elementaryFunctions/cosh/ccosha.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/elementaryFunctions/cosh/ccosha.c b/src/elementaryFunctions/cosh/ccosha.c
new file mode 100644
index 00000000..7d3f0ba5
--- /dev/null
+++ b/src/elementaryFunctions/cosh/ccosha.c
@@ -0,0 +1,28 @@
+/*
+** -*- C -*-
+**
+** ccosha.c
+** Made by Bruno JOFRET <bruno.jofret@inria.fr>
+**
+** Started on Thu Dec 7 14:54:24 2006 jofret
+** Last update Fri Jan 19 14:55:22 2007 jofret
+**
+** Copyright INRIA 2006
+*/
+
+
+#ifndef STDC99
+#include "floatComplex.h"
+#else
+#include <complex.h>
+typedef float complex floatComplex;
+#endif
+
+floatComplex ccoshs(floatComplex);
+
+void ccosha(floatComplex* x, int strideX, floatComplex* y, int strideY, int size) {
+ int i = 0;
+ for (i = 0; i < size; ++i) {
+ y[i] = ccoshs(x[i]);
+ }
+}