Custom floats do not respect `np.set_printoptions`
Open
bug
- Dominant language
- C++
- Stars
- 361
- Forks
- 60
- Avg merge
- 18h 41m
- Merged PRs (30d)
- 3
Description
Reported in https://github.com/google/jax/issues/18820
The repr code is here: https://github.com/jax-ml/ml_dtypes/blob/d0519a5391c6936e0e2d8f81e694cd4c6908c7fe/ml_dtypes/_src/custom_float.h#L356-L362
@hawkinsp points out that we could probably make this work by printing via `np.float32` rather than via python `float`
Contributor guide
Assessment
This issue has not been assessed yet.