Skip to content
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

Merged
merged 18 commits into from
Jan 17, 2021
Merged

Odds #7

merged 18 commits into from
Jan 17, 2021

Conversation

HEnquist
Copy link
Owner

@HEnquist HEnquist commented Jan 14, 2021

Add support for odd lengths.
Also a big rewrite to be more similar to RustFFT, with a Planner etc.

// create an FFT
let r2c = real_planner.plan_fft_forward(length);
// make input and output vectors
let mut indata = r2c.make_input_vec();

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

Copy link
Owner Author

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.

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()

Copy link
Owner Author

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.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And thanks for looking!

@HEnquist HEnquist merged commit 6480e79 into master Jan 17, 2021
@HEnquist HEnquist deleted the odds branch January 17, 2021 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants