Re: [Numpy-discussion] Matrix Class

2015-02-14 Thread cjw
'2',3]) >> Error in lines 1-1 >> Traceback (most recent call last): >> TypeError: unable to find a common ring for all elements >> >> In : Matrix([[1,2,3],[4,5]]) >> ValueError: List of rows is not valid (rows are wrong types or lengths) >> >>

Re: [Numpy-discussion] Matrix Class

2015-02-11 Thread cjw
On 11-Feb-15 12:13 PM, Alan G Isaac wrote: Just recalling the one-year-ago discussion: http://comments.gmane.org/gmane.comp.python.numeric.general/56494 Alan Isaac ___ NumPy-Discussion mailing list NumPy-Discussion@s

Re: [Numpy-discussion] Matrix Class

2015-02-11 Thread cjw
. On 11-Feb-15 12:19 PM, Sebastian Berg wrote: On Mi, 2015-02-11 at 11:38 -0500, cjw wrote: On 11-Feb-15 10:47 AM, Sebastian Berg wrote: On Di, 2015-02-10 at 15:07 -0700, cjw wrote: It seems to be agreed that there

Re: [Numpy-discussion] Matrix Class

2015-02-11 Thread cjw
Could you say which version you are using please? Colin W On Tue, Feb 10, 2015 at 5:07 PM, cjw wrote: It seems to be agreed that there are weaknesses in the existing Numpy Matrix Class. Some problems are illustrated below. I'll try to put

Re: [Numpy-discussion] Matrix Class

2015-02-11 Thread cjw
On 11-Feb-15 10:47 AM, Sebastian Berg wrote: On Di, 2015-02-10 at 15:07 -0700, cjw wrote: It seems to be agreed that there are weaknesses in the existing Numpy Matrix Class. Some problems are illustrated below. Not to delve

[Numpy-discussion] Matrix Class

2015-02-10 Thread cjw
It seems to be agreed that there are weaknesses in the existing Numpy Matrix Class. Some problems are illustrated below. I'll try to put some suggestions over the coming weeks and would appreciate comments. Colin W. Test Script: if __name__ == '__main__': a= mat([4, 5, 6])

Re: [Numpy-discussion] Silent Broadcasting considered harmful

2015-02-09 Thread cjw
On 09-Feb-15 2:34 AM, Stefan Reiterer wrote: Ok that are indeed some good reasons to keep the status quo, especially since performance is crucial for numpy. It's a dillemma: Using the matrix class for linear algebra would be the correct way for such thing, bu

Re: [Numpy-discussion] Silent Broadcasting considered harmful

2015-02-08 Thread cjw
On 08-Feb-15 5:47 PM, Nathaniel Smith wrote: On 8 Feb 2015 13:39, "Simon Wood" wrote: I find the broadcasting aspect of Numpy a turn off. If I go to add a 1x3 vector to a 3x1 vector, I want the program to warn me or error out. I

Re: [Numpy-discussion] new mingw-w64 based numpy and scipy wheel (still experimental)

2015-01-27 Thread cjw
On 27-Jan-15 5:32 AM, Carl Kleffner wrote: 2015-01-27 0:16 GMT+01:00 Sturla Molden : On 26/01/15 16:30, Carl Kleffner wrote: Thanks for all your ideas. The next version will contain an augumented libopenblas.dll in both nu

Re: [Numpy-discussion] new mingw-w64 based numpy and scipy wheel (still experimental)

2015-01-25 Thread cjw
On 24-Jan-15 12:14 PM, Carl Kleffner wrote: > Just a wild guess: > > (1) update your pip and try again Thanks. My pip version was 1,5,6, it is now 6.0.6 > > (2) use the bitbucket wheels with: > pip install --no-index -f > https://bitbucket.org/carlkl/mingw-w64-for-python/downloads numpy Successfu

Re: [Numpy-discussion] new mingw-w64 based numpy and scipy wheel (still experimental)

2015-01-24 Thread cjw
On 22-Jan-15 6:23 PM, Nathaniel Smith wrote: > On Thu, Jan 22, 2015 at 9:29 PM, Carl Kleffner wrote: >> I took time to create mingw-w64 based wheels of numpy-1.9.1 and scipy-0.15.1 >> source distributions and put them on >> https://bitbucket.org/carlkl/mingw-w64-for-python/downloads as well as on

Re: [Numpy-discussion] new mingw-w64 based numpy and scipy wheel (still experimental)

2015-01-22 Thread cjw
Thanks, Colin W. On 22-Jan-15 5:42 PM, Carl Kleffner wrote: Yes, I build win32 as well as amd64 binaries. Carlkl 2015-01-22 23:06 GMT+01:00 cjw : Thanks Carl, This is good to hear. I presume that the AMD64 is covered. Colin

Re: [Numpy-discussion] new mingw-w64 based numpy and scipy wheel (still experimental)

2015-01-22 Thread cjw
Thanks Carl, This is good to hear.  I presume that the AMD64 is covered. Colin W. On 22-Jan-15 4:29 PM, Carl Kleffner wrote: I took time to create mingw-w64 based wheels of numpy-1.9.1 and scipy-0.15.1 source distributions and put them on https

Re: [Numpy-discussion] ANN: Scipy 0.15.0 release

2015-01-11 Thread cjw
Paul, Wot, no AMD64? Colin W. On 11-Jan-15 12:50 PM, Paul Virtanen wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Dear all, > > We are pleased to announce the Scipy 0.15.0 release. > > The 0.15.0 release contains bugfixes and new features, most important > of which are mentioned in

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
error message. In these circumstances, I hope that the Development Team will wish to treat this as a bug. Regards, Colin W. On 06-Jan-15 8:20 PM, Nathaniel Smith wrote: > Hi Colin, > > On Wed, Jan 7, 2015 at 12:58 AM, cjw wrote: >> My recollection, from discussions, at

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

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] Generalize hstack/vstack --> stack; Block matrices like in matlab

2014-09-08 Thread cjw
On 08-Sep-14 4:40 PM, Joseph Martinot-Lagarde wrote: > Le 08/09/2014 15:29, Stefan Otte a écrit : >> Hey, >> >> quite often I work with block matrices. Matlab offers the convenient notation >> >> [ a b; c d ] This would appear to be a desirable way to go. Numpy has something similar for str

Re: [Numpy-discussion] Does a `mergesorted` function make sense?

2014-09-03 Thread cjw
Re: [Numpy-discussion] Does a `mergesorted` function make sense? On 02/09/2014 8:40 PM, Charles R Harris wrote: On Mon, Sep 1, 2014 at 7:58 AM, Eelco Hoogendoorn mailto:hoogendoorn.ee...@gmail.com>> wrote: On Mon, Sep 1, 2014 at 2:05 PM, Charles R Harris mailto:charlesr.har...@gmai

Re: [Numpy-discussion] NumPy-Discussion OpenBLAS and dotblas

2014-08-12 Thread cjw
Charles, Nothing I've seen so far envisages disturbing the existing, in my opinion flawed, Matrix Class. I trust that I have not missed anything. Compilation is a complex press for a person unfamiliar with the C. Anything you could do to simplify that would be welcome. Colin W. On 12/08/2

Re: [Numpy-discussion] Preliminary thoughts on implementing __matmul__

2014-08-07 Thread cjw
On 07/08/2014 5:40 AM, Sebastian Berg wrote: > On Mi, 2014-08-06 at 14:05 -0700, Chris Barker wrote: >> On Wed, Aug 6, 2014 at 8:32 AM, Charles R Harris >> wrote: >> Should also mention that we don't have the ability to operate >> on stacked vectors because they can't be identif