Re: [Numpy-discussion] Intel MKL - was: parallel numpy - any info?

2008-01-10 Thread David Cournapeau
Albert Strasheim wrote: Hello On Jan 10, 2008 6:56 AM, David Cournapeau [EMAIL PROTECTED] wrote: The one thing which I am not sure about is: say one MKL binary does not work, and say I (or anyone outside your company) build numpy with the MKL ro debug it, can I redistribute a new

[Numpy-discussion] example of ufunc c-code?

2008-01-10 Thread Neal Becker
Where can I find a (hopefully simple) example of c-code for a ufunc? ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] example of ufunc c-code?

2008-01-10 Thread Travis E. Oliphant
Neal Becker wrote: Where can I find a (hopefully simple) example of c-code for a ufunc? Probably in scipy.special and or umathmodule.c in numpy/core/src. The key is to register a 1-d inner loop that performs the basic calculation for a particular data-type. You also need to provide the

Re: [Numpy-discussion] BzrMirror page on numpy wiki

2008-01-10 Thread David Cournapeau
David Cournapeau wrote: Hi, I started a page on how to use bzr, with a link to an import I have done on the numpy trunk: http://scipy.org/scipy/numpy/wiki/BzrMirror I thought it would be useful for people not familiar with DVCS, and are curious to try. In perticular, since I have

Re: [Numpy-discussion] subclassing matrix

2008-01-10 Thread Colin J. Williams
Basilisk96 wrote: Hello folks, In the course of a project that involved heavy use of geometry and linear algebra, I found it useful to create a Vector subclass of numpy.matrix (represented as a column vector in my case). Why not consider a matrix with a shape of (1, n) as a row vector and

Re: [Numpy-discussion] BzrMirror page on numpy wiki

2008-01-10 Thread Michael McLay
Thanks for the explanation of bzr. I'd like to give it a try on another project. How did you create the repository at http://www.ar.media.kyoto-u.ac.jp/members/david/archives/numpy.trunk repository? Is this bzr mirror of the numpy svn repository automatically updated to follow the commits to the

Re: [Numpy-discussion] BzrMirror page on numpy wiki

2008-01-10 Thread David Cournapeau
Michael McLay wrote: Thanks for the explanation of bzr. I'd like to give it a try on another project. How did you create the repository at http://www.ar.media.kyoto-u.ac.jp/members/david/archives/numpy.trunk repository? Is this bzr mirror of the numpy svn repository automatically updated to

Re: [Numpy-discussion] Setting WRITEABLE flag on array scalar

2008-01-10 Thread Timothy Hochberg
On Jan 10, 2008 8:53 AM, Stefan van der Walt [EMAIL PROTECTED] wrote: Hi all, We currently use an array scalar of value False as the mask in MaskedArray. I would like to make sure that the mask value cannot be modified, but when I try import numpy as np x = np.bool_(False)

Re: [Numpy-discussion] Setting WRITEABLE flag on array scalar

2008-01-10 Thread Travis E. Oliphant
Stefan van der Walt wrote: Hi all, We currently use an array scalar of value False as the mask in MaskedArray. I would like to make sure that the mask value cannot be modified, but when I try import numpy as np x = np.bool_(False) x.flags['WRITEABLE'] = False I am warned that you

Re: [Numpy-discussion] Setting WRITEABLE flag on array scalar

2008-01-10 Thread Stefan van der Walt
Hi, On Thu, Jan 10, 2008 at 10:21:28AM -0600, Travis E. Oliphant wrote: You can't do it, because there is no place for the information to go. The array scalars are always read-only anyway. So, there should be no reason to set this flag. Right, I was confused because I saw: In [1]: x =

Re: [Numpy-discussion] subclassing matrix

2008-01-10 Thread Basilisk96
Yes, that certainly meets the need. In previous applications, I never thought to use Vector because it was sufficient for me to adopt the convention of a column vector to represent XY points. That way, I could do things like c * R * u + t. Isn't that simple? Not only is it easy on the eyes, but