Re: [Numpy-discussion] Adding to the non-dispatched implementation of NumPy methods

2019-04-22 Thread Stephan Hoyer
On Mon, Apr 22, 2019 at 2:20 PM Ralf Gommers wrote: > > > On Mon, Apr 22, 2019 at 9:26 PM Nathaniel Smith wrote: > >> Your last email didn't really clarify anything for me. I get that >> np.func.__numpy_implementation__ is intended to have the semantics of >> numpy's implementation of func, but

Re: [Numpy-discussion] Adding to the non-dispatched implementation of NumPy methods

2019-04-22 Thread Ralf Gommers
On Mon, Apr 22, 2019 at 9:26 PM Nathaniel Smith wrote: > Your last email didn't really clarify anything for me. I get that > np.func.__numpy_implementation__ is intended to have the semantics of > numpy's implementation of func, but that doesn't tell me much :-). And > also, that's exactly the de

Re: [Numpy-discussion] Adding to the non-dispatched implementation of NumPy methods

2019-04-22 Thread Nathaniel Smith
Your last email didn't really clarify anything for me. I get that np.func.__numpy_implementation__ is intended to have the semantics of numpy's implementation of func, but that doesn't tell me much :-). And also, that's exactly the definition of np.func, isn't it? You're talking about ~doubling th

Re: [Numpy-discussion] Adding to the non-dispatched implementation of NumPy methods

2019-04-22 Thread Stephan Hoyer
Are there still concerns here? If not, I would love to move ahead with these changes so we can get this into NumPy 1.17. On Tue, Apr 16, 2019 at 10:23 AM Stephan Hoyer wrote: > __numpy_implementation__ is indeed simply a slot for third-parties to > access NumPy's implementation. It should be con

Re: [Numpy-discussion] Boolean arrays with nulls?

2019-04-22 Thread Chris Barker
On Thu, Apr 18, 2019 at 10:52 AM Stuart Reynolds wrote: > Is float8 a thing? > no, but np.float16 is -- so at least only twice as much memory as youo need :-) array([ nan, inf, -inf], dtype=float16) I think masked arrays are going to be just as much, as they need to carry the mask. -CHB >