diff options
Diffstat (limited to 'src/signalProcessing/fft/dfftma.c')
-rw-r--r-- | src/signalProcessing/fft/dfftma.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/signalProcessing/fft/dfftma.c b/src/signalProcessing/fft/dfftma.c index f855c1b7..bd8cc0be 100644 --- a/src/signalProcessing/fft/dfftma.c +++ b/src/signalProcessing/fft/dfftma.c @@ -1,7 +1,7 @@ /* * 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 @@ -10,6 +10,7 @@ * */ +#include <malloc.h> #include "fft.h" #include "zeros.h" @@ -19,13 +20,13 @@ void dfftma ( double* in , int rows, int cols, double* out){ doubleComplex* inCpx; doubleComplex* outCpx; - ZEROS = malloc((uint)(rows*cols)*sizeof(double)); - outCpx = malloc((uint)(rows*cols)*sizeof(doubleComplex)); - + ZEROS = (double*) malloc((unsigned int)(rows*cols)*sizeof(double)); + outCpx = (doubleComplex*) malloc((unsigned int)(rows*cols)*sizeof(doubleComplex)); + dzerosa(ZEROS,rows,cols); inCpx=DoubleComplexMatrix(in,ZEROS,rows*cols); - + zfftma(inCpx,rows,cols,outCpx); - + zreala(outCpx, rows*cols, out); } |