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

Create ComplexFloat trait to model Floats as a subset of Complex<T> #95

Merged
merged 6 commits into from Jun 15, 2022

Conversation

obsgolem
Copy link
Contributor

@obsgolem obsgolem commented Sep 11, 2021

Resolves #2. Replaces #53. Nearly all the work here was already done by YakoYakoYokuYoku. I have merely updated it to master and made a few discretionary changes which I think improve the work slightly. More unit tests will be coming.

@YakoYakoYokuYoku
Copy link
Contributor

YakoYakoYokuYoku commented Sep 12, 2021

If you want it you could add a Co-authored-by: Martin Reboredo <yakoyoku@gmail.com> at any one of your commit messages. LGTM otherwise.

@obsgolem
Copy link
Contributor Author

I will certainly do so. Thanks!

…point and complex numbers. Added a couple of methods to Complex that were present in Float but missing in Complex. Added tests for many methods on the new trait and for all new methods on Complex. Resolves rust-num#2.

Authored originally by Martin Reboredo <yakoyoku@gmail.com>
Updated by Josiah Bills <josiah@adoniram.net>
@obsgolem
Copy link
Contributor Author

obsgolem commented Dec 9, 2021

Ping, any chance I could get a review before end of year?

@obsgolem
Copy link
Contributor Author

Bump

Copy link
Member

@cuviper cuviper left a comment

Choose a reason for hiding this comment

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

Sorry that I've left this neglected for so long...

src/complex_float.rs Outdated Show resolved Hide resolved
src/complex_float.rs Outdated Show resolved Hide resolved
src/complex_float.rs Outdated Show resolved Hide resolved
src/complex_float.rs Outdated Show resolved Hide resolved
src/complex_float.rs Show resolved Hide resolved
src/complex_float.rs Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
src/complex_float.rs Show resolved Hide resolved
src/complex_float.rs Outdated Show resolved Hide resolved
@bluss
Copy link
Contributor

bluss commented May 4, 2022

Awesome work, I'm happy this trait comes alive.

@cuviper
Copy link
Member

cuviper commented Jun 15, 2022

I tweaked a few more things, but I think we're good. 🤞 Thanks!

bors r+

@bors
Copy link
Contributor

bors bot commented Jun 15, 2022

@bors bors bot merged commit 8cd50f8 into rust-num:master Jun 15, 2022
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.

Need common trait for floating and complex numbers
4 participants