[Numpy-discussion] More zaniness Re: simple question
Mathew Yeates
myeates at jpl.nasa.gov
Thu Jul 6 17:20:51 EDT 2006
okay, I went back to the binary windows distrib. Based on Keths code I wrote
>> print numpy.asmatrix(all_dates == start_dates[row],dtype=int)
[[0 0 0 0 0 0 0 0 0 0 0 1 0 0]]
>> [row,numpy.asmatrix(all_dates == start_dates[row],dtype=int)] = -1
>> print A[row,:]
[[-1. -1. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]]
huh? It set the first 2 elements and not the 12'th!!
Mathew
More information about the NumPy-Discussion
mailing list