C
Cormac O'Donnell
hi,
I have a piece of code implementing the FFT algorithm in c++ and i
have to convert it into java. i am getting stuck trying to understand
these pointers. Anyone who has experience in java and C++, could you
please explain the code below , esp the lines a1+=nFFT2( i know it
increments the a1 variable/pointer by nFFT2 but how does this give the
methos FBFilter new elements of each array). Anyone who could
translate this to java would be a star!!!
Cormac.
nFrames = 249;
nFFT2 = 128;
nChn =25;
float* s=new float[nFrames*nFFT2]; // FFT
float* u=new float[nFrames*nChn]; // FB
// s and u have operations done on them here
a1=s;
float* a2=u;
for(int i=0;i<nFrames;i++) {
FBFilter(a1,a2);
a1+=nFFT2;
a2+=nChn;
}
I have a piece of code implementing the FFT algorithm in c++ and i
have to convert it into java. i am getting stuck trying to understand
these pointers. Anyone who has experience in java and C++, could you
please explain the code below , esp the lines a1+=nFFT2( i know it
increments the a1 variable/pointer by nFFT2 but how does this give the
methos FBFilter new elements of each array). Anyone who could
translate this to java would be a star!!!
Cormac.
nFrames = 249;
nFFT2 = 128;
nChn =25;
float* s=new float[nFrames*nFFT2]; // FFT
float* u=new float[nFrames*nChn]; // FB
// s and u have operations done on them here
a1=s;
float* a2=u;
for(int i=0;i<nFrames;i++) {
FBFilter(a1,a2);
a1+=nFFT2;
a2+=nChn;
}