
6 Nov
2006
6 Nov
'06
1:10 p.m.
Chun,
"chun ping wang" cablepuff@gmail.com> wrote in message news:7253f6b30611040957jd863beyc72ffb73605002bf@mail.gmail.com... Hey i have a quick question regarding dynamic bits. Is there a quick and effective way to reverse bits. (if so how)... i try >swapping.. but i get compile time error. so that i can calculate iterative-fft since it requires bit-reverse-copy
for (i = 0; i
Have your tried: std::reverse( b.begin(), b.end() ); or some other valid range in b? Also there is a std::reverse_copy algorithm. IIRC, fft does not use a simple bit reverse. I don't have the details readily accessible to me now but can look into it this evening. Jeff Flinn