question about jit.fft with multiple dimensions

Dec 20, 2007 at 4:13pm

question about jit.fft with multiple dimensions

Hi there

When doing a multidimensional fft in jit.fft, do you need to supply data in the first two dimensions equally in order to process the data in dimension 3?

I’m asking because when I try to use jit.fft to process a 1d array in dim 1 and a 1d array in dim3, dim3 doesn’t get processed – unless I’m doing something stupid which is possible.

here’s a patch that demonstrates what I mean.

#P user ezdac~ 316 46 360 79 0;
#P window setfont “Sans Serif” 9.;
#P user jit.fpsgui 311 391 60 196617 3;
#P user jit.fpsgui 10 330 60 196617 3;
#P user jit.pwindow 559 415 82 62 0 1 0 0 1 0;
#P user jit.pwindow 459 539 81 66 0 1 0 0 1 0;
#P window linecount 1;
#P newex 460 517 171 196617 jit.matrix fftout2 1 float32 2048 1;
#B color 5;
#P newex 460 492 171 196617 jit.fft 2 float32 2048 1 @inverse 1;
#B color 5;
#P newex 468 375 100 196617 jit.split @splitdim 2;
#B color 5;
#P newex 571 183 51 196617 < ~ 0.001;
#P newex 376 108 61 196617 cycle~ 240;
#P newex 571 210 36 196617 edge~;
#P user jit.pwindow 493 274 82 62 0 1 0 0 1 0;
#P newex 469 155 50 196617 *~ 2047;
#P newex 469 108 100 196617 phasor~ 21.533203;
#P newex 376 228 174 196617 jit.matrix fftwot2 1 float32 2048 1;
#P newex 376 199 106 196617 jit.poke~ fftwot2 1 0;
#P newex 73 271 118 196617 jit.concat @concatdim 2;
#P user jit.pwindow 71 471 82 62 0 1 0 0 1 0;
#P newex 72 450 165 196617 jit.matrix fftout 1 float32 2048 1;
#B color 5;
#P newex 72 420 171 196617 jit.fft 2 float32 2048 1 @inverse 1;
#B color 5;
#P newex 272 180 51 196617 < ~ 0.001;
#P newex 73 107 61 196617 cycle~ 830;
#P newex 272 207 36 196617 edge~;
#P newex 73 330 173 196617 jit.matrix fftish 2 float32 2048 1 2;
#P user jit.pwindow 283 274 82 62 0 1 0 0 1 0;
#P newex 166 154 50 196617 *~ 2047;
#P newex 166 107 100 196617 phasor~ 21.533203;
#P newex 73 227 168 196617 jit.matrix fftwot 1 float32 2048 1;
#P newex 73 198 100 196617 jit.poke~ fftwot 1 0;
#P newex 73 353 126 196617 jit.fft 2 float32 2048 1 2;
#B color 5;
#P connect 13 0 27 0;
#P fasten 0 0 10 0 78 372 77 372;
#P connect 10 0 11 0;
#P connect 11 0 12 0;
#P connect 8 0 1 0;
#P connect 1 0 2 0;
#P connect 7 0 2 0;
#P connect 2 0 13 0;
#P connect 13 0 6 0;
#P connect 6 0 0 0;
#P fasten 4 0 1 1 171 184 168 184;
#P connect 3 0 4 0;
#P fasten 15 0 13 1 381 266 186 266;
#P connect 3 0 9 0;
#P connect 9 0 7 0;
#P fasten 2 0 5 0 78 251 289 251;
#P fasten 0 0 28 0 78 380 316 380;
#P connect 20 0 14 0;
#P connect 19 0 15 0;
#P connect 14 0 15 0;
#P fasten 22 1 23 0 518 442 465 442;
#P connect 23 0 24 0;
#P connect 24 0 25 0;
#P fasten 0 0 22 0 78 372 473 372;
#P connect 16 0 17 0;
#P fasten 17 0 14 1 474 185 477 185;
#P fasten 15 0 18 0 381 266 499 266;
#P fasten 22 1 26 0 518 404 565 404;
#P connect 16 0 21 0;
#P connect 21 0 19 0;
#P window clipboard copycount 30;

#35073

You must be logged in to reply to this topic.