summaryrefslogtreecommitdiff
path: root/src/signalProcessing/fft/dfft2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/signalProcessing/fft/dfft2.c')
-rw-r--r--src/signalProcessing/fft/dfft2.c27
1 files changed, 8 insertions, 19 deletions
diff --git a/src/signalProcessing/fft/dfft2.c b/src/signalProcessing/fft/dfft2.c
index 7a5ac88a..1ef87535 100644
--- a/src/signalProcessing/fft/dfft2.c
+++ b/src/signalProcessing/fft/dfft2.c
@@ -13,30 +13,19 @@
#include "fft_internal.h"
#include <stdlib.h>
-void dfft2 ( double* a , double* b , int nseg , int n , int nspn , int isn , int ierr, double* iw , int lw )
+void dfft2 ( double* a , double* b , int nseg , int n , int nspn , int isn , int ierr )
{
- /*created to avoid the cast problem */
- int* iIw = (int*) malloc( sizeof (int) * (unsigned int) lw );
+ dfftbi ( a , b , nseg , n , nspn , isn , ierr );
+ int iii = 0 ;
+ printf ("\n\n" );
+ for ( iii = 0 ; iii < 3 ; iii++)
+ {
-/*so these lines are duplicated */
- iIw[0] = 0 ;
- iIw[1] = 10 ;
- iIw[2] = 10 ;
- iIw[3] = lw ;
- iIw[4] = 10 ;
-
- iw[0] = 0 ;
- iw[1] = 10 ;
- iw[2] = 10 ;
- iw[3] = lw ;
- iw[4] = 10 ;
-
- dfftbi ( a , b , nseg , n , nspn ,
- isn , ierr , iIw[0], iIw[1] , iIw[2],
- iIw[3], iIw[4], iw, iIw );
+ printf ("\t\t %d edede tot : %f \t %f\n" , iii ,a[iii], b[iii]);
+ }
return ;