[Numpy-discussion] How to compare an array of arrays elementwise to None in

2017-07-19 Thread Martin.Gfeller
Thank you for your help! Sebastian, I couldn't agree more with someone's bug being someone else's feature! A fast identity ufunc would be useful, though. Actually, numpy.frompyfunc(operator.is_,2,1) is much faster than the numpy.vectorize approach - only about 35% slower on quick measurement

Re: [Numpy-discussion] How to compare an array of arrays elementwise to None in

2017-07-19 Thread Sebastian Berg
On Wed, 2017-07-19 at 08:31 +, martin.gfel...@swisscom.com wrote: > Thank you for your help! > > Sebastian, I couldn't agree more with someone's bug being someone > else's feature! A fast identity ufunc would be useful, though.  > An `object_identity` ufunc should be very easy to implement,