Re: [Numpy-discussion] prerelease proposal for matrix behavior

2008-04-28 Thread Alan G Isaac
On Mon, 28 Apr 2008, Timothy Hochberg apparently wrote: > Can you clarify what you > mean by submatrix extraction? It sounds like you want to be able index into > an MxN array and get out a 1xN or Mx1 matrix. If that's the case, wouldn't > the natural way to spell that under the RowVector/Column

Re: [Numpy-discussion] prerelease proposal for matrix behavior

2008-04-28 Thread Timothy Hochberg
On Sat, Apr 26, 2008 at 7:12 AM, Alan G Isaac <[EMAIL PROTECTED]> wrote: > On Fri, 25 Apr 2008, "Travis E. Oliphant" apparently wrote: > > At this point, I'm leaning in the direction of the > > RowVector / ColumnVector approach (even if these are not > > really advertised and just used during inde

Re: [Numpy-discussion] prerelease proposal for matrix behavior

2008-04-26 Thread Alan G Isaac
> Alan G Isaac wrote: >> OK, we are not converging in time for the release. >> So can we at least raise a TypeError on scalar >> indexing of matrices, so that we remain free to choose >> the ultimate behavior? On Fri, 25 Apr 2008, "Travis E. Oliphant" apparently wrote: > I think this is wise

Re: [Numpy-discussion] prerelease proposal for matrix behavior

2008-04-26 Thread Alan G Isaac
On Fri, 25 Apr 2008, "Travis E. Oliphant" apparently wrote: > At this point, I'm leaning in the direction of the > RowVector / ColumnVector approach (even if these are not > really advertised and just used during indexing). I believe that this conflicts with submatrix extraction. Details follow

Re: [Numpy-discussion] prerelease proposal for matrix behavior

2008-04-26 Thread Alan G Isaac
On Sat, 26 Apr 2008, Bill Baxter apparently wrote: > Any change to the behavior of x[0] for matrices is going to break a lot of > code. OK, how about a warning then? E.g., see attached patch. Cheers, Alan --- defmatrix.old Sat Apr 26 09:34:11 2008 +++ defmatrix.pySat Apr 26 09:37

Re: [Numpy-discussion] prerelease proposal for matrix behavior

2008-04-25 Thread Bill Baxter
On Sat, Apr 26, 2008 at 10:27 AM, Charles R Harris <[EMAIL PROTECTED]> wrote: > > > On Fri, Apr 25, 2008 at 6:38 PM, Alan G Isaac <[EMAIL PROTECTED]> wrote: > > OK, we are not converging in time for the release. > > So can we at least raise a TypeError on scalar > > indexing of matrices, so that we

Re: [Numpy-discussion] prerelease proposal for matrix behavior

2008-04-25 Thread Travis E. Oliphant
Alan G Isaac wrote: > OK, we are not converging in time for the release. > So can we at least raise a TypeError on scalar > indexing of matrices, so that we remain free to choose > the ultimate behavior? > I think this is wise for the time being. At this point, I'm leaning in the direction of t

Re: [Numpy-discussion] prerelease proposal for matrix behavior

2008-04-25 Thread Charles R Harris
On Fri, Apr 25, 2008 at 6:38 PM, Alan G Isaac <[EMAIL PROTECTED]> wrote: > OK, we are not converging in time for the release. > So can we at least raise a TypeError on scalar > indexing of matrices, so that we remain free to choose > the ultimate behavior? > > Those who have spoke up have generall

Re: [Numpy-discussion] prerelease proposal for matrix behavior

2008-04-25 Thread Alan G Isaac
OK, we are not converging in time for the release. So can we at least raise a TypeError on scalar indexing of matrices, so that we remain free to choose the ultimate behavior? Those who have spoke up have generally favored letting x[0] return a 1d array, if I count correctly. And I think that is t