Skip to content

MAINT: remove explicit xp.complex128 imports#430

Open
ev-br wants to merge 7 commits intodata-apis:masterfrom
ev-br:rm_complex128
Open

MAINT: remove explicit xp.complex128 imports#430
ev-br wants to merge 7 commits intodata-apis:masterfrom
ev-br:rm_complex128

Conversation

@ev-br
Copy link
Member

@ev-br ev-br commented Mar 20, 2026

towards #431

  1. Refactor the scalars strategy.

While at it, note that complex64 cases used to generate values of 32 bits for both real and imag parts: so in a range of complex32 / two float16.

  1. Refactor the float <-> complex assertions (used in FFT tests)

TODO: test locally. The scalars strategy is fairly deep in the stack. done, tested locally, no new problems

  1. Add widest_{real,complex}_dtype to dtype_helpers, use in test_special_cases

@ev-br ev-br changed the title MAINT: remove explicit xp.complex128 from scalars() strategy MAINT: remove explicit xp.complex128 imports Mar 21, 2026
ev-br added 2 commits March 21, 2026 10:44
NB: while at it, note that complex64 cases used to generate values of 32 bits
for *both real and imag parts*: so in a range of complex32 / two float16.
Reuse real_dtype_for/complex_dtype_for, which encapsulate the same mappings.
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.

1 participant