summaryrefslogtreecommitdiff
path: root/src/auxiliaryFunctions/sign/csigna.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/auxiliaryFunctions/sign/csigna.c')
-rw-r--r--src/auxiliaryFunctions/sign/csigna.c27
1 files changed, 12 insertions, 15 deletions
diff --git a/src/auxiliaryFunctions/sign/csigna.c b/src/auxiliaryFunctions/sign/csigna.c
index c1e5e50d..478b4689 100644
--- a/src/auxiliaryFunctions/sign/csigna.c
+++ b/src/auxiliaryFunctions/sign/csigna.c
@@ -1,24 +1,21 @@
/*
-** -*- C -*-
-**
-** csigna.c
-** Made by Bruno JOFRET <bruno.jofret@inria.fr>
-**
-** Started on Fri Sep 7 17:36:56 2007 bruno
-** Last update Fri Sep 7 17:37:15 2007 bruno
-**
-** Copyright INRIA 2007
-*/
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2008-2008 - INRIA - Bruno JOFRET
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ */
#include "sign.h"
-int csigna(floatComplex *in, int size) {
+void csigna(floatComplex *in, int size, floatComplex *out) {
int i = 0;
- int sign = 1;
- /* FIXME : Does it what it's supposed to do ? */
for (i = 0 ; i < size ; ++i) {
- sign = sign * csigns(in[i]);
+ out[i] = csigns(in[i]);
}
- return sign;
}