[Numpy-discussion] Proceedings of EuroSciPy 2014

2015-01-05 Thread Ralf Gommers
On Tue, Dec 23, 2014 at 7:06 PM, wrote: > Dear scientist using Python, > > We are glad to announce the publication of the proceedings of the 7th > European > Conference on Python in Science, EuroSciPy 2014, still in 2014! > > The proceedings cover various scientific fields in which Python and its

Re: [Numpy-discussion] edge-cases of ellipsis indexing

2015-01-05 Thread Antony Lee
I see, thanks! 2015-01-05 2:14 GMT-07:00 Sebastian Berg : > On Mo, 2015-01-05 at 14:13 +0530, Maniteja Nandana wrote: > > Hi Anthony, > > > > > > I am not sure whether the following section in documentation is > > relevant to the behavior you were referring to. > > > > > > When an ellipsis (...)

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

Re: [Numpy-discussion] The future of ndarray.diagonal()

2015-01-05 Thread josef.pktd
On Mon, Jan 5, 2015 at 11:13 AM, Alan G Isaac wrote: > On 1/5/2015 10:48 AM, josef.p...@gmail.com wrote: > > Dtypes are a mess (in terms of code compatibility). Matlab is much > nicer, it's all just doubles. > > > 1. Thank goodness for dtypes. > 2. http://www.mathworks.com/help/matlab/numeric-typ

Re: [Numpy-discussion] The future of ndarray.diagonal()

2015-01-05 Thread Alan G Isaac
On 1/5/2015 10:48 AM, josef.p...@gmail.com wrote: > Dtypes are a mess (in terms of code compatibility). Matlab is much nicer, > it's all just doubles. 1. Thank goodness for dtypes. 2. http://www.mathworks.com/help/matlab/numeric-types.html 3. After translating Matlab code to much nicer NumPy,

Re: [Numpy-discussion] The future of ndarray.diagonal()

2015-01-05 Thread josef.pktd
On Mon, Jan 5, 2015 at 4:08 AM, Konrad Hinsen wrote: > --On 5 janvier 2015 08:43:45 + Sturla Molden > wrote: > > > To me it seems that algorithms in scientific papers and books are > > described in various forms of pseudo-code. > > That's indeed what people do when they write a paper about a

Re: [Numpy-discussion] edge-cases of ellipsis indexing

2015-01-05 Thread Sebastian Berg
On Mo, 2015-01-05 at 14:13 +0530, Maniteja Nandana wrote: > Hi Anthony, > > > I am not sure whether the following section in documentation is > relevant to the behavior you were referring to. > > > When an ellipsis (...) is present but has no size (i.e. replaces > zero :) the result will still

Re: [Numpy-discussion] The future of ndarray.diagonal()

2015-01-05 Thread Konrad Hinsen
--On 5 janvier 2015 08:43:45 + Sturla Molden wrote: > To me it seems that algorithms in scientific papers and books are > described in various forms of pseudo-code. That's indeed what people do when they write a paper about an algorithm. But many if not most algorithms in computational sci

Re: [Numpy-discussion] edge-cases of ellipsis indexing

2015-01-05 Thread Maniteja Nandana
Hi Anthony, I am not sure whether the following section in documentation is relevant to the behavior you were referring to. When an ellipsis (...) is present but has no size (i.e. replaces zero :) the result will still always be an array. A view if no advanced index is present, otherwise a copy.

Re: [Numpy-discussion] The future of ndarray.diagonal()

2015-01-05 Thread Sturla Molden
Konrad Hinsen wrote: > Scientific communication depends more and more on scripts as the only > precise documentation of a computational method. Our programming > languages are becoming a major form of scientific notation, alongside > traditional mathematics. To me it seems that algorithms in