-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Odds #7
Conversation
// create an FFT | ||
let r2c = real_planner.plan_fft_forward(length); | ||
// make input and output vectors | ||
let mut indata = r2c.make_input_vec(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a neat idea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes I think this is quite convenient, so avoid writing the same "let blahblah = vec![.....]" over and over. Something you would like to have in RustFFT as well?
src/lib.rs
Outdated
} | ||
} | ||
impl<T: FftNum> RealToComplex<T> { | ||
/// Create a new RealToComplex FFT for input data of a given length. Returns an error if the length is not even. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment isn't accurate anymore, since it always returns Ok()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That looks as it's not from the latest version, this part changed a lot in the next couple of commits.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And thanks for looking!
Add support for odd lengths.
Also a big rewrite to be more similar to RustFFT, with a Planner etc.