diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/elementaryFunctions/log/cloga.c | 20 | ||||
-rw-r--r-- | src/elementaryFunctions/log/dloga.c | 20 | ||||
-rw-r--r-- | src/elementaryFunctions/log/sloga.c | 20 | ||||
-rw-r--r-- | src/elementaryFunctions/log/zloga.c | 20 |
4 files changed, 80 insertions, 0 deletions
diff --git a/src/elementaryFunctions/log/cloga.c b/src/elementaryFunctions/log/cloga.c index e69de29b..e2dc87b2 100644 --- a/src/elementaryFunctions/log/cloga.c +++ b/src/elementaryFunctions/log/cloga.c @@ -0,0 +1,20 @@ +/* +** -*- C -*- +** +** cloga.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Fri Sep 7 10:32:52 2007 bruno +** Last update Fri Sep 7 10:37:56 2007 bruno +** +** Copyright INRIA 2007 +*/ + +#include "log.h" + +void cloga(floatComplex* in, floatComplex* out, int size) { + int i = 0; + for (i = 0; i < size; ++i) { + out[i] = clogs(in[i]); + } +} diff --git a/src/elementaryFunctions/log/dloga.c b/src/elementaryFunctions/log/dloga.c index e69de29b..dbc2d49d 100644 --- a/src/elementaryFunctions/log/dloga.c +++ b/src/elementaryFunctions/log/dloga.c @@ -0,0 +1,20 @@ +/* +** -*- C -*- +** +** dloga.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Fri Sep 7 10:31:35 2007 bruno +** Last update Fri Sep 7 10:32:23 2007 bruno +** +** Copyright INRIA 2007 +*/ + +#include "log.h" + +void dloga(double* x, double* y, int size) { + int i = 0; + for (i = 0; i < size; ++i) { + y[i] = slogs(x[i]); + } +} diff --git a/src/elementaryFunctions/log/sloga.c b/src/elementaryFunctions/log/sloga.c index e69de29b..73ca53e3 100644 --- a/src/elementaryFunctions/log/sloga.c +++ b/src/elementaryFunctions/log/sloga.c @@ -0,0 +1,20 @@ +/* +** -*- C -*- +** +** sloga.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Fri Sep 7 10:29:01 2007 bruno +** Last update Fri Sep 7 10:30:59 2007 bruno +** +** Copyright INRIA 2007 +*/ + +#include "log.h" + +void sloga(float* in, float* out, int size) { + int i = 0; + for (i = 0; i < size; ++i) { + out[i] = slogs(in[i]); + } +} diff --git a/src/elementaryFunctions/log/zloga.c b/src/elementaryFunctions/log/zloga.c index e69de29b..79048803 100644 --- a/src/elementaryFunctions/log/zloga.c +++ b/src/elementaryFunctions/log/zloga.c @@ -0,0 +1,20 @@ +/* +** -*- C -*- +** +** zloga.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Fri Sep 7 10:38:10 2007 bruno +** Last update Fri Sep 7 10:38:57 2007 bruno +** +** Copyright INRIA 2007 +*/ + +#include "log.h" + +void zloga(doubleComplex* in, doubleComplex* out, int size) { + int i = 0; + for (i = 0; i < size; ++i) { + out[i] = zlogs(in[i]); + } +} |