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/dfftma.c | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/signalProcessing/fft/dfftma.c (limited to 'src/signalProcessing/fft/dfftma.c') diff --git a/src/signalProcessing/fft/dfftma.c b/src/signalProcessing/fft/dfftma.c new file mode 100644 index 00000000..f855c1b7 --- /dev/null +++ b/src/signalProcessing/fft/dfftma.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 dfftma ( double* in , int rows, int cols, double* out){ + double* ZEROS; + doubleComplex* inCpx; + doubleComplex* outCpx; + + ZEROS = malloc((uint)(rows*cols)*sizeof(double)); + outCpx = malloc((uint)(rows*cols)*sizeof(doubleComplex)); + + dzerosa(ZEROS,rows,cols); + inCpx=DoubleComplexMatrix(in,ZEROS,rows*cols); + + zfftma(inCpx,rows,cols,outCpx); + + zreala(outCpx, rows*cols, out); +} -- cgit