From 2e2f500f9a66fa5fe57fdc24866e536f3a33ac81 Mon Sep 17 00:00:00 2001 From: torset Date: Fri, 20 Feb 2009 13:51:11 +0000 Subject: Change prototypes : real functions return real --- src/signalProcessing/fft/sfftma.c | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/signalProcessing/fft/sfftma.c (limited to 'src/signalProcessing/fft/sfftma.c') diff --git a/src/signalProcessing/fft/sfftma.c b/src/signalProcessing/fft/sfftma.c new file mode 100644 index 00000000..c60c9427 --- /dev/null +++ b/src/signalProcessing/fft/sfftma.c @@ -0,0 +1,31 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2008 - INRIA - Arnaud Torset + * + * 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 "fft.h" +#include "zeros.h" + + +void sfftma ( float* in , int rows, int cols, float* out){ + float* ZEROS; + floatComplex* inCpx; + floatComplex* outCpx; + + ZEROS = malloc((uint)(rows*cols)*sizeof(float)); + outCpx = malloc((uint)(rows*cols)*sizeof(floatComplex)); + + szerosa(ZEROS,rows,cols); + inCpx=FloatComplexMatrix(in,ZEROS,rows*cols); + + cfftma(inCpx,rows,cols,outCpx); + + creala(outCpx, rows*cols, out); +} -- cgit