Re: [Numpy-discussion] suggestions for slices of matrices

2006-10-10 Thread Alan G Isaac
> JJ wrote: >> In my humble opinion, I think indexing is a weak spot in >> numpy. On Tue, 10 Oct 2006, Travis Oliphant apparently wrote: > I'm sorry you see it that way. I think indexing is a strength of > numpy. It's a little different then what you are used to > with Matlab, perhaps, but

Re: [Numpy-discussion] suggestions for slices of matrices

2006-10-10 Thread jj
> > -- If M is a nxm matrix and P and Z are nx1 (or 1xn) > > matrices, then it would be nice if we could write > > M[P==Z,:] to obtain all columns and only those rows > > where P==Z. > This works already if p and z are 1-d arrays. That seems to be the > only issue. you want this to work with

Re: [Numpy-discussion] suggestions for slices of matrices

2006-10-09 Thread Travis Oliphant
JJ wrote: > Hello. > I haven't been following development too closely > lately, but I did just download and reinstall the > current svn version. For what its worth, I would like > to again suggest two changes: > Suggestions are nice. Working code is better. Many ideas are just too difficult