diff options
| author | Sebastian Berg <sebastian@sipsolutions.net> | 2021-07-20 20:47:20 -0500 |
|---|---|---|
| committer | Sebastian Berg <sebastian@sipsolutions.net> | 2021-07-26 17:16:58 -0700 |
| commit | 13c313c107e5a85d3d1ce8eff37af5c4022f8cba (patch) | |
| tree | ca3bcdf5c204c54fe07d814a8fa9207a17f88c5f /numpy/array_api/setup.py | |
| parent | 6e5cdc9d0923558dc66ad878f2e5392d29185754 (diff) | |
| download | numpy-13c313c107e5a85d3d1ce8eff37af5c4022f8cba.tar.gz | |
TST: Add C-side "Scaled float" example
This adds a C-side scaled float (actually double), that is available
as:
SF = np.core._multiarray_umath._get_sfloat_dtype()
It supports different scaling factors:
a = np.arange(10.).astype(SF(2.))
b = np.arange(10.).astype(SF(0.5))
and casting from double (used there).
This commit makes tiny changes in NumPy to support correct printing.
Diffstat (limited to 'numpy/array_api/setup.py')
0 files changed, 0 insertions, 0 deletions
