[Numpy-discussion] in the NA discussion, what can we agree on?
Nathaniel Smith
njs@pobox....
Fri Nov 4 22:03:39 CDT 2011
On Fri, Nov 4, 2011 at 7:43 PM, T J <tjhnson@gmail.com> wrote:
> On Fri, Nov 4, 2011 at 6:31 PM, Pauli Virtanen <pav@iki.fi> wrote:
>> An acid test for proposed rules: given two arrays `a` and `b`,
>>
>> a = [1, 2, IGNORED(3), IGNORED(4)]
>> b = [10, IGNORED(20), 30, IGNORED(40)]
[...]
> (A1) Does unmask(a+b) == unmask(b + a) ?
>
> Yes. They both equal:
>
> unmask([11, IGNORED(22), IGNORED(33), IGNORED(44)])
> =
> [11, 22, 33, 44]
Again, I really don't think you're going to be able to sell an API where
[2] + [IGNORED(20)] == [IGNORED(22)]
I mean, it's not me you have to convince, it's Gary, Pierre, maybe
Benjamin, Lluís, etc. So I could be wrong. But you might want to
figure that out first before making plans based on this...
-- Nathaniel
More information about the NumPy-Discussion
mailing list