Re: [Numpy-discussion] three-way comparisons

2016-05-14 Thread josef.pktd
On Sat, May 14, 2016 at 3:23 AM, Phillip Feldman < phillip.m.feld...@gmail.com> wrote: > I often find a need to do the type of comparison done by function shown > below. I suspect that this would be more efficient for large arrays if > implemented direction in C. Is there any possibility of addi

[Numpy-discussion] three-way comparisons

2016-05-14 Thread Phillip Feldman
I often find a need to do the type of comparison done by function shown below. I suspect that this would be more efficient for large arrays if implemented direction in C. Is there any possibility of adding something like this to NumPy? def three_way(x, y): """ This function performs a 3-wa