Re: [Numpy-discussion] Using 2-D arrays in Numeric Python (numpy)

2008-10-10 Thread Robert Kern
On Sat, Oct 11, 2008 at 00:38, Linda Seltzer <[EMAIL PROTECTED]> wrote: > Thank you. It produced this error message: > NameError: global name 'npy' is not defined Note the line: import numpy as npy >> In numpy it's >>import numpy as npy >>a = npy.zeros((256,256)) >> >>a[0,0] = 1.0

Re: [Numpy-discussion] Using 2-D arrays in Numeric Python (numpy)

2008-10-10 Thread Linda Seltzer
Thank you. It produced this error message: NameError: global name 'npy' is not defined > In numpy it's >import numpy as npy >a = npy.zeros((256,256)) > >a[0,0] = 1.0 >a[200,123] = -42.0 ># etc... > > I think you were just missing the extra parentheses in the numpy > version of "

Re: [Numpy-discussion] Using 2-D arrays in Numeric Python (numpy)

2008-10-10 Thread Bill Baxter
On Sat, Oct 11, 2008 at 2:16 PM, Linda Seltzer <[EMAIL PROTECTED]> wrote: > I would appreciate it if someone could answer my question without > referring to subjects such as APIs and interfaces, since I am only > concerned with a mathematical application at this time. > In most tutorials, array exa

Re: [Numpy-discussion] Using 2-D arrays in Numeric Python (numpy)

2008-10-10 Thread Linda Seltzer
I would appreciate it if someone could answer my question without referring to subjects such as APIs and interfaces, since I am only concerned with a mathematical application at this time. In most tutorials, array examples are of the form: a = array([1, 2, 3], [4, 5, 6] ) The problem with this is t

Re: [Numpy-discussion] Using 2-D arrays in Numeric Python (numpy)

2008-10-10 Thread Robert Kern
On Fri, Oct 10, 2008 at 21:42, Linda Seltzer <[EMAIL PROTECTED]> wrote: > This worked: > from numpy.oldnumeric import * To be clear, you mean that this worked to replace the statement "from Numeric import *" in the older code that you mentioned in your previous thread. > Should I use > from numpy

[Numpy-discussion] Using 2-D arrays in Numeric Python (numpy)

2008-10-10 Thread Linda Seltzer
This worked: from numpy.oldnumeric import * Should I use from numpy import * (Does the first statement use outdated software?) I want to use 2-D arrays. Please advise me on the best way to do this. ___ Numpy-discussion mailing list Numpy-discussion@sc

[Numpy-discussion] Build problem using mingw on Win32

2008-10-10 Thread Dave Kammeyer
Hi All, Using the current trunk, I am getting the following build error: creating build\temp.win32-2.5\Release\build creating build\temp.win32-2.5\Release\build\src.win32-2.5 creating build\temp.win32-2.5\Release\build\src.win32-2.5\numpy creating build\temp.win32-2.5\Release\build\src.win32-2.5\

Re: [Numpy-discussion] Installation of Numerical Python

2008-10-10 Thread Peter
Rober Kern wrote: > Numeric is an old, obsolete package. numpy is the successor. You > installed numpy, not Numeric. Unfortunately, there is no Python 2.5 > binary available for Numeric. Actually, there is - but not from the numpy/Numeric/SciPy team as they want to encourage people to move over to

Re: [Numpy-discussion] Installation of Numerical Python

2008-10-10 Thread Peter
On Fri, Oct 10, 2008 at 10:26 PM, Linda Seltzer <[EMAIL PROTECTED]> wrote: > > Hello Group Members: > > Can someone please answer a question about installing Numerical Python and > getting it to work. I downloaded the ... new file > numpy-1.2.0-win32-superpack-python2.5 [.exe I assume?] You have

Re: [Numpy-discussion] Installation of Numerical Python

2008-10-10 Thread Robert Kern
On Fri, Oct 10, 2008 at 16:26, Linda Seltzer <[EMAIL PROTECTED]> wrote: > Hello Group Members: > > Can someone please answer a question about installing Numerical Python and > getting it to work. I downloaded the files. They are in > C:\Program Files\Python25 > > I have the python code and also t

[Numpy-discussion] Installation of Numerical Python

2008-10-10 Thread Linda Seltzer
Hello Group Members: Can someone please answer a question about installing Numerical Python and getting it to work. I downloaded the files. They are in C:\Program Files\Python25 I have the python code and also the new file numpy-1.2.0-win32-superpack-python2.5 There is also a text file, numpy.

Re: [Numpy-discussion] can't build numpy 1.2.0 under python 2.6 (windows-amd64) using VS9

2008-10-10 Thread Michael Abshoff
David Cournapeau wrote: Hi David, > Michael Abshoff wrote: >> Well, I think that having a 64 bit native build of numpy/scipy using an >> efficient and non-commercial licensed BLAS/Lapack (i.e. not Intel MKL) >> can't be a bad thing :) > > Yes, of course. But it is useful to be able to use a 32

Re: [Numpy-discussion] Apply a vector function to each row of a matrix

2008-10-10 Thread David Huard
On Thu, Oct 9, 2008 at 2:48 PM, Neal Becker <[EMAIL PROTECTED]> wrote: > David Huard wrote: > > > On Thu, Oct 9, 2008 at 9:40 AM, Neal Becker <[EMAIL PROTECTED]> wrote: > > > >> David Huard wrote: > >> > >> > Neal, > >> > > >> > Look at: apply_along_axis > >> > > >> > > >> I guess it'd be: > >> >

Re: [Numpy-discussion] can't build numpy 1.2.0 under python 2.6 (windows-amd64) using VS9

2008-10-10 Thread David Cournapeau
Michael Abshoff wrote: > > Well, I think that having a 64 bit native build of numpy/scipy using an > efficient and non-commercial licensed BLAS/Lapack (i.e. not Intel MKL) > can't be a bad thing :) Yes, of course. But it is useful to be able to use a 32 bits toolchain to produce 64 bits software

Re: [Numpy-discussion] can't build numpy 1.2.0 under python 2.6 (windows-amd64) using VS9

2008-10-10 Thread Michael Abshoff
David Cournapeau wrote: > Ravi wrote: Hi, >> Michael Abshoff already responded to the ATLAS question. I don't have access >> to a 64-bit Windows. Given the volume of legacy 32-bit applications where I >> work, there is no chance of 64-bit Windows access for me for at least 2 >> years. > > Win

Re: [Numpy-discussion] can't build numpy 1.2.0 under python 2.6 (windows-amd64) using VS9

2008-10-10 Thread David Cournapeau
Ravi wrote: > > Michael Abshoff already responded to the ATLAS question. I don't have access > to a 64-bit Windows. Given the volume of legacy 32-bit applications where I > work, there is no chance of 64-bit Windows access for me for at least 2 years. Windows 64 actually has a very nice feature:

Re: [Numpy-discussion] can't build numpy 1.2.0 u nder python 2.6 (windows-amd64) using VS9

2008-10-10 Thread Ravi
On Friday 10 October 2008 03:06:26 David Cournapeau wrote: > > Given that commenting out the section above allows numpy to compile > > without any apparent side effects, is there any chance we could get > > "experimental" binaries of numpy 1.2.0 for python 2.6? I do understand > > that a negative a

Re: [Numpy-discussion] NURBS to arc

2008-10-10 Thread Stéfan van der Walt
Hi Niki 2008/10/10 Niki Spahiev <[EMAIL PROTECTED]>: > can i use numpy for handling NURBS splines? Especially i like to make > arc approximation of NURBS. I have Runten Tenfjord's NURBs module, modified for NumPy, as part of my (incomplete) super-resolution library: http://mentat.za.net/supreme

Re: [Numpy-discussion] Vectorizing "dot" on the two last axis

2008-10-10 Thread Anne Archibald
2008/10/10 Gael Varoquaux <[EMAIL PROTECTED]>: > I have been unable to vectorize the following operation:: > >window_size = 10 >nb_windows = 819 >nb_clusters = 501 >restricted_series = np.random.random(size=(window_size, nb_clusters, >

Re: [Numpy-discussion] can't build numpy 1.2.0 under python 2.6 (windows-amd64) using VS9

2008-10-10 Thread Michael Abshoff
David Cournapeau wrote: Hi David, > > I started a wiki page on the issues related to windows, 64 bits and > python 2.6 (those issues are somewhat related at some level): > > http://scipy.org/scipy/numpy/wiki/MicrosoftToolchainSupport Cool. > If you want to help, you can try solving one proble

Re: [Numpy-discussion] matlab ss2tf in python/symbols in linear algebra/transfer functions

2008-10-10 Thread Dag Sverre Seljebotn
Gael Varoquaux wrote: > On Fri, Oct 10, 2008 at 04:02:21AM -0700, Scott Askey wrote: > >>> Subject: matlab ss2tf in python/symbol in linear algebra/transfer functions >>> To: numpy-discussion@scipy.org >>> Date: Thursday, October 9, 2008, 5:36 PM >>> Is there a clever way to do symbolic linear a

[Numpy-discussion] Vectorizing "dot" on the two last axis

2008-10-10 Thread Gael Varoquaux
Hi list, I have been unable to vectorize the following operation:: window_size = 10 nb_windows = 819 nb_clusters = 501 restricted_series = np.random.random(size=(window_size, nb_clusters, nb_windows)) this_cov = np.zeros((nb

Re: [Numpy-discussion] matlab ss2tf in python/symbols in linear algebra/transfer functions

2008-10-10 Thread Gael Varoquaux
On Fri, Oct 10, 2008 at 04:02:21AM -0700, Scott Askey wrote: > > Subject: matlab ss2tf in python/symbol in linear algebra/transfer functions > > To: numpy-discussion@scipy.org > > Date: Thursday, October 9, 2008, 5:36 PM > > Is there a clever way to do symbolic linear algebra with > > python? What

[Numpy-discussion] NURBS to arc

2008-10-10 Thread Niki Spahiev
Hello, can i use numpy for handling NURBS splines? Especially i like to make arc approximation of NURBS. thanks, Niki ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] matlab ss2tf in python/symbols in linear algebra/transfer functions

2008-10-10 Thread Scott Askey
> Subject: matlab ss2tf in python/symbol in linear algebra/transfer functions > To: numpy-discussion@scipy.org > Date: Thursday, October 9, 2008, 5:36 PM > Is there a clever way to do symbolic linear algebra with > python? What is the prober tool for doing linear algebra > with matrices containi

Re: [Numpy-discussion] can't build numpy 1.2.0 under python 2.6 (windows-amd64) using VS9

2008-10-10 Thread David Cournapeau
Ravi wrote: > > > Given that commenting out the section above allows numpy to compile without > any apparent side effects, is there any chance we could get "experimental" > binaries of numpy 1.2.0 for python 2.6? I do understand that a negative > answer > is very likely and the reasons therefor