[SciPy-dev] Three cheers for Travis!

Ed Schofield schofield at ftw.at
Wed Nov 30 19:12:18 CST 2005



On 30/11/2005, at 7:41 PM, Travis Oliphant wrote:

>> I have another couple of 0-dim array bugs to report (as a reward :D)
>>
>>>>> b = array(2)
>>>>> b.argmax()
>> 0
>>>>> b.argmin()
>> Segmentation fault
>>
>>
>>
> I guess the broader question here is should argmax even work for 0-d
> arrays since they can't be indexed?

Yes, it's a crazy thing to do.  I guess an exception would be the  
best result.

-- Ed




More information about the Scipy-dev mailing list