Re: [Numpy-discussion] NEP 49: Data allocation strategies

2021-04-21 Thread Ralf Gommers
On Tue, Apr 20, 2021 at 2:18 PM Matti Picus wrote: > I have submitted NEP 49 to enable user-defined allocation strategies for > the ndarray.data homogeneous memory area. The implementation is in PR > 17582 https://github.com/numpy/numpy/pull/17582 Here is the text of the > NEP: > Thanks Matti!

[Numpy-discussion] Add smallest_normal and smallest_subnormal attributes to finfo

2021-04-21 Thread Stephannie Jiménez Gacha
Good afternoon, Given the discussions happened in the Data API consortium when looking into the attributes of `finfo` used in the wild, we found that `tiny` is used regularly but in a good amount of cases not for its intended purpose but rather as "just give me a small number". Following this we a

Re: [Numpy-discussion] NEP 49: Data allocation strategies

2021-04-21 Thread Matti Picus
See my comments interspersed in Ralf's reply. Thanks for the additional context. Matti On 21/4/21 3:10 am, Ralf Gommers wrote: ... Motivation and Scope Users may wish to override the internal data memory routines with ones of their own. Two suc