Re: [Numpy-discussion] Characteristic of a Matrix.

2015-02-04 Thread Colin J. Williams
On 08/01/2015 1:19 PM, Ryan Nelson wrote: Colin, I'll second the endorsement of Sage; however, for teaching purposes, I would suggest Sage Math Cloud. It is a free, web-based version of Sage, and it does not require you or the students to install any software (besides a new-ish web browser).

Re: [Numpy-discussion] Characteristic of a Matrix.

2015-02-04 Thread Colin J. Williams
On 06/01/2015 8:38 PM, Alexander Belopolsky wrote: On Tue, Jan 6, 2015 at 8:20 PM, Nathaniel Smith > wrote: > Since matrices are now part of some high school curricula, I urge that they > be treated appropriately in Numpy. Further, I suggest that considera

Re: [Numpy-discussion] Characteristic of a Matrix.

2015-01-08 Thread Nathaniel Smith
On Wed, Jan 7, 2015 at 7:35 PM, cjw wrote: > Nathaniel, > > Of the two characteristics to which I pointed, I feel that the > rectangularity check is the more important. I gave an example of a typo > which demonstrated this problem. The numpy matrix class does require rectangularity; the issue yo

Re: [Numpy-discussion] Characteristic of a Matrix.

2015-01-08 Thread Ryan Nelson
Colin, I'll second the endorsement of Sage; however, for teaching purposes, I would suggest Sage Math Cloud. It is a free, web-based version of Sage, and it does not require you or the students to install any software (besides a new-ish web browser). It also make sharing/collaborative work quite e

Re: [Numpy-discussion] Characteristic of a Matrix.

2015-01-07 Thread cjw
Thanks Alexander, I'll look at Sage. Colin W. On 06-Jan-15 8:38 PM, Alexander Belopolsky wrote: On Tue, Jan 6, 2015 at 8:20 PM, Nathaniel Smith wrote: Since matrices are now part of some high school curricula,

Re: [Numpy-discussion] Characteristic of a Matrix.

2015-01-07 Thread cjw
Nathaniel, Of the two characteristics to which I pointed, I feel that the rectangularity check is the more important. I gave an example of a typo which demonstrated this problem. The error message reported that pinv does not have a conjugate function which, I suggest, is a totally misleading

Re: [Numpy-discussion] Characteristic of a Matrix.

2015-01-06 Thread Alexander Belopolsky
On Tue, Jan 6, 2015 at 8:20 PM, Nathaniel Smith wrote: > > Since matrices are now part of some high school curricula, I urge that > they > > be treated appropriately in Numpy. Further, I suggest that > consideration be > > given to establishing V and VT sub-classes, to cover vectors and > transp

Re: [Numpy-discussion] Characteristic of a Matrix.

2015-01-06 Thread Nathaniel Smith
Hi Colin, On Wed, Jan 7, 2015 at 12:58 AM, cjw wrote: > > My recollection, from discussions, at the time of the introduction of the @ > operator, was that there was no intention to disturb the existing Matrix > class. Yeah, we're not going to be making any major changes to the numpy.matrix class

Re: [Numpy-discussion] Characteristic of a Matrix.

2015-01-06 Thread cjw
On 06-Jan-15 7:31 AM, Sturla Molden wrote: On 06/01/15 02:08, cjw wrote: This is not a comment on any present matrix support, but deals with the matrix class, which existed back when Todd Miller of the Space Telescope Group supported numpy. Ma

Re: [Numpy-discussion] Characteristic of a Matrix.

2015-01-06 Thread Sturla Molden
On 06/01/15 02:08, cjw wrote: > This is not a comment on any present matrix support, but deals with the > matrix class, which existed back when Todd Miller of the Space Telescope > Group supported numpy. > > Matrix is a sub-class of ndarray. Since this Matrix class is (more or less) deprecated an

Re: [Numpy-discussion] Characteristic of a Matrix.

2015-01-05 Thread cjw
Nathaniel, This is not a comment on any present matrix support, but deals with the matrix class, which existed back when Todd Miller of the Space Telescope Group supported numpy. Matrix is a sub-class of ndarray. I'm suggesting that anything which is pr

Re: [Numpy-discussion] Characteristic of a Matrix.

2015-01-05 Thread cjw
On 05-Jan-15 1:56 PM, David€id wrote: > On 5 January 2015 at 20:40, Colin J. Williams > wrote: > >> This illustrates a failure, which is reported later in the calculation: >> >> A2= np.matrix([[1, 2, -2], [-3, -1, 4], [4, 2 -6]]) >> >> Here 2 - 6 is treated as an expression. >> > There should be

Re: [Numpy-discussion] Characteristic of a Matrix.

2015-01-05 Thread eat
On Mon, Jan 5, 2015 at 9:36 PM, Nathaniel Smith wrote: > On Mon, Jan 5, 2015 at 7:18 PM, wrote: > > > > > > > > On Mon, Jan 5, 2015 at 1:58 PM, Nathaniel Smith wrote: > >> > >> I'm afraid that I really don't understand what you're trying to say. Is > there something that you think numpy should

Re: [Numpy-discussion] Characteristic of a Matrix.

2015-01-05 Thread josef.pktd
On Mon, Jan 5, 2015 at 2:36 PM, Nathaniel Smith wrote: > On Mon, Jan 5, 2015 at 7:18 PM, wrote: > > > > > > > > On Mon, Jan 5, 2015 at 1:58 PM, Nathaniel Smith wrote: > >> > >> I'm afraid that I really don't understand what you're trying to say. Is > there something that you think numpy should

Re: [Numpy-discussion] Characteristic of a Matrix.

2015-01-05 Thread Nathaniel Smith
On Mon, Jan 5, 2015 at 7:18 PM, wrote: > > > > On Mon, Jan 5, 2015 at 1:58 PM, Nathaniel Smith wrote: >> >> I'm afraid that I really don't understand what you're trying to say. Is >> there something that you think numpy should be doing differently? > > > I liked it better when this raised an exc

Re: [Numpy-discussion] Characteristic of a Matrix.

2015-01-05 Thread josef.pktd
On Mon, Jan 5, 2015 at 1:58 PM, Nathaniel Smith wrote: > I'm afraid that I really don't understand what you're trying to say. Is > there something that you think numpy should be doing differently? > I liked it better when this raised an exception, instead of creating a rectangular object array.

Re: [Numpy-discussion] Characteristic of a Matrix.

2015-01-05 Thread Warren Weckesser
On Mon, Jan 5, 2015 at 1:58 PM, Nathaniel Smith wrote: > I'm afraid that I really don't understand what you're trying to say. Is > there something that you think numpy should be doing differently? > > This is a case similar to the issue discussed in https://github.com/numpy/numpy/issues/5303. I

Re: [Numpy-discussion] Characteristic of a Matrix.

2015-01-05 Thread Nathaniel Smith
I'm afraid that I really don't understand what you're trying to say. Is there something that you think numpy should be doing differently? On Mon, Jan 5, 2015 at 6:40 PM, Colin J. Williams wrote: > One of the essential characteristics of a matrix is that it be rectangular. > > This is neither spe

Re: [Numpy-discussion] Characteristic of a Matrix.

2015-01-05 Thread eat
Hi, On Mon, Jan 5, 2015 at 8:40 PM, Colin J. Williams wrote: > One of the essential characteristics of a matrix is that it be rectangular. > > This is neither spelt out or checked currently. > > The Doc description refers to a class: > >- *class *numpy.matrix[source] > >

Re: [Numpy-discussion] Characteristic of a Matrix.

2015-01-05 Thread Daπid
On 5 January 2015 at 20:40, Colin J. Williams wrote: > This illustrates a failure, which is reported later in the calculation: > > A2= np.matrix([[1, 2, -2], [-3, -1, 4], [4, 2 -6]]) > > Here 2 - 6 is treated as an expression. > There should be a comma between 2 and -6. The rectangularity is chec

[Numpy-discussion] Characteristic of a Matrix.

2015-01-05 Thread Colin J. Williams
One of the essential characteristics of a matrix is that it be rectangular. This is neither spelt out or checked currently. The Doc description refers to a class: - *class *numpy.matrix[source] Returns a matrix