From 67967f518d88e77869b0f434f5c15d0778915f00 Mon Sep 17 00:00:00 2001 From: jofret Date: Fri, 8 Dec 2006 16:02:20 +0000 Subject: adding Sine functions but still some work to do --- src/elementaryFunctions/sin/csina.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/elementaryFunctions/sin/csina.c (limited to 'src/elementaryFunctions/sin/csina.c') diff --git a/src/elementaryFunctions/sin/csina.c b/src/elementaryFunctions/sin/csina.c new file mode 100644 index 00000000..76e669dc --- /dev/null +++ b/src/elementaryFunctions/sin/csina.c @@ -0,0 +1,27 @@ +/* +** -*- C -*- +** +** csina.c +** Made by Bruno JOFRET +** +** Started on Fri Dec 8 13:07:37 2006 jofret +** Last update Fri Dec 8 14:01:46 2006 jofret +** +** Copyright INRIA 2006 +*/ + +#ifndef STDC99 +#include "floatComplex.h" +#else +#include +typedef float complex floatComplex; +#endif + +floatComplex csins(floatComplex); + +void csina(floatComplex* x, int strideX, floatComplex* y, int strideY, int size) { + int i = 0; + for (i = 0; i < size; ++i) { + y[i] = csins(x[i]); + } +} -- cgit