Numerical Python Question

Uwe Schmitt uwe.schmitt at procoders.net
Thu Oct 17 11:05:42 EDT 2002


Carl Banks <imbosol at vt.edu> wrote:
> Uwe Schmitt wrote:
>> 
>> Hi,
>> 
>> I tried (similar to MatLab):
>> 
>>   dest[:n] = greater( orig1[:n], orig2[:n])
>> 
>> which does not work, the assignment with a sliced array
>> on the left side seams not to be implemented.

I found the error: greater returns an array with typecode Int16,
but dest has typecode Int0.

Greetings and Thanks, Uwe



-- 
Dr. rer. nat. Uwe Schmitt      Computer science is no more about Computers,
uwe.schmitt at num.uni-sb.de      than astronomy is about telescopes. (Dijkstra)
http://www.procoders.net           



More information about the Python-list mailing list