GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||
GeezerVison is showing github.com — ENH: Replace npy complex structs with native complex types by lysnikolaou · Pull Request #24085 · numpy/numpy Conversation
Member
See discussion in #20880.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
Thanks a lot for the pointers! Unfortunately, the generated files will need to change, since
Yeah, this has been mostly about checking whether everything would work fine. I guess there's no better way than to do the work. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
30b3af7 to
ad60798
Compare
There was an error while loading. Please reload this page.
5c5d5f7 to
bf3fa21
Compare
d9bfd27 to
717141f
Compare
You hit the nail on the head. MSVC made this PR so much harder than it should have been. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Yeah, but unlike C99 support, I think the C++ |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
It does exist, but it makes using these types more complicated, since |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
CI failures appear to be unrelated, so, someone, please restart the two failing jobs. 🙏 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Failures were down to one, and I restarted that last one now. If it fails again, please simply ignore it. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks @lysnikolaou |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
A few follow-ups we might want to look into:
Is there anything else to think about? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
I can do this in a new PR, if that's okay. It'll be my first time writing anything more than a one-liner for a release note though, so it's okay if someone else wants to take this.
Agreed that it's okay to leave as-is for now. Cython's handling of complex's is a bit complicated as well because of the MSVC issues, so it might make things harder to reason about.
We could write a few words in the NumPy core math library section of the docs about complex handling as well, although I guess that wouldn't be a priority. Also, I'm already working on removing as much of the complex compat layer in |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Fixes breakage with numpy's main branch after numpy/numpy#24085
Sounds like a good exercise to me:) Describing the reason for the change and how to adapt to it is the main thing, which I think is easiest for you to do. We can help tweak so it fits with the other release notes if needed. Given that this is causing a fair amount of breakage (at least SciPy, pandas, and h5py I've seen), it'd be nice to get this drafted. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Sounds good! I'll get started on this tomorrow. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| #ifdef __cplusplus | ||
| } | ||
| #endif | ||
| #undef complex |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I don't think this #undef should be here. This breaks the use of complex in extensions modules that use #include <complex.h> that also include this NumPy header.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
xref #24343
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.