Hi All,
Do indeed try __array_ufunc__! It should make many things work much
better and possibly faster than was possible with __array_prepare__
and __array_wrap__ (for astropy's Quantity, an ndarray subclass than I
maintain, it gets us a factor of almost 2 in speed for operations
where scaling for
Also, as friendly reminder, GitHub is a better place for bug reports than
mailing lists with hundreds of subscribers :).
On Thu, May 11, 2017 at 6:56 AM, Eric Wieser
wrote:
> Nadav: Can you provide a testcase that fails?
>
> I don't think you're correct - it works just fine when `axis = a.ndims`
Nadav: Can you provide a testcase that fails?
I don't think you're correct - it works just fine when `axis = a.ndims` -
the issue arises when `axis > a.ndims`, but I'd argue that in that case an
error is correct behaviour. But still a change, so perhaps needs a release
note entry
On Thu, 11 May 2
There is a change to "expand_dims" function, that it is now does not allow axis
= a.ndims.
This influences matplotlib function get_bending_matrices in triinterpolate.py
Nadav
From: NumPy-Discussion
on behalf of
Charles R Harris
Sent: 11 May 2017 04:48:34
On Wed, May 10, 2017 at 7:06 PM, Nathan Goldbaum wrote:
> Hi Chuck,
>
> Is there a docs build for this release somewhere? I'd like to find an
> authoritative reference about __array_ufunc__, which I'd hesistated on
> looking into until now for fear about the API changing.
A sort-of-rendered versi
+1
I've been looking for docs on __array_ufunc__ for about ten minutes...
On Wed, May 10, 2017 at 7:06 PM, Nathan Goldbaum
wrote:
> Hi Chuck,
>
> Is there a docs build for this release somewhere? I'd like to find an
> authoritative reference about __array_ufunc__, which I'd hesistated on
> look
Hi Chuck,
Is there a docs build for this release somewhere? I'd like to find an
authoritative reference about __array_ufunc__, which I'd hesistated on
looking into until now for fear about the API changing.
Nathan
On Wed, May 10, 2017 at 8:49 PM Charles R Harris
wrote:
> Hi All,
>
> I'm please