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