On Tue, Jul 16, 2019 at 5:58 AM Charles R Harris
wrote:
>
>
> On Tue, Jul 16, 2019 at 3:44 AM Kevin Sheppard
> wrote:
>
>> I am trying to make a subclass that never propagates so that when
>> interacted with another ndarray, or even itself so that the return type is
>> always ndarray. Is this p
On Tue, Jul 16, 2019 at 3:44 AM Kevin Sheppard
wrote:
> I am trying to make a subclass that never propagates so that when
> interacted with another ndarray, or even itself so that the return type is
> always ndarray. Is this possible?
>
> I got pretty far with
>
> def __array_wrap__(self, out_ar
I am trying to make a subclass that never propagates so that when
interacted with another ndarray, or even itself so that the return type is
always ndarray. Is this possible?
I got pretty far with
def __array_wrap__(self, out_arr, context=None):
if out_arr.shape == ():
return out_arr