Re: numarray

2006-07-06 Thread Claudio Grondi
to post what you have exactly done as the phrase "from import ..." can't be it. Claudio Grondi > > what's the difference between 'import numpy', and "from import numpy *" > > comments... > > thanks > > -bruce > > > -O

Re: numarray

2006-07-04 Thread Robert Kern
bruce wrote: > robert > > i did an > python>>> import numpy > a = array([['q','a'],['w','e']]) > > and it didn't work... > > i used > >>from import numpy * > > and it seems to accept the 'array' word.. .looks like it will work... > > what's the difference between 'import numpy', an

RE: numarray

2006-07-04 Thread bruce
the difference between 'import numpy', and "from import numpy *" comments... thanks -bruce -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Robert Kern Sent: Tuesday, July 04, 2006 9:42 PM To: python-list@python.org Subject: Re: numarra

Re: numarray

2006-07-04 Thread Robert Kern
bruce wrote: > hi... > > i'm trying to find numarray.. i found the numpy on sourceforge and > downloaded/installed.. > > i did a > python>> import numarray > > and got an error... Never just say "I got an error." It tells us nothing. Copy-and-paste the exact error message. I presume, however,

Re: Numarray, numeric, NumPy, scpy_core ??!!

2006-01-23 Thread Sébastien Boisgérault
Robert Kern wrote: > Sébastien Boisgérault wrote: > > Robert Kern wrote: > > > >>Sébastien Boisgérault wrote: > >> > >>>By the way, I tried numpy 0.9.4 10 minutes ago and guess > >>>what ? 'eigenvalue' is broken too ... (hangs forever) > >> > >>On what platform? > > > > Linux, Mandriva 2006 (gcc 4

Re: Numarray, numeric, NumPy, scpy_core ??!!

2006-01-23 Thread Sébastien Boisgérault
[EMAIL PROTECTED] wrote: > Robert Kern wrote: > > Sébastien Boisgérault wrote: > > > > > By the way, I tried numpy 0.9.4 10 minutes ago and guess > > > what ? 'eigenvalue' is broken too ... (hangs forever) > > > > On what platform? Are you linking against an optimized BLAS? We can't fix > > anythi

Re: Numarray, numeric, NumPy, scpy_core ??!!

2006-01-23 Thread Robert Kern
Sébastien Boisgérault wrote: > Robert Kern wrote: > >>Sébastien Boisgérault wrote: >> >>>By the way, I tried numpy 0.9.4 10 minutes ago and guess >>>what ? 'eigenvalue' is broken too ... (hangs forever) >> >>On what platform? > > Linux, Mandriva 2006 (gcc 4.0.1, etc.) Okay, my answer then is, "D

Re: Numarray, numeric, NumPy, scpy_core ??!!

2006-01-23 Thread Sébastien Boisgérault
Robert Kern wrote: > Sébastien Boisgérault wrote: > > > By the way, I tried numpy 0.9.4 10 minutes ago and guess > > what ? 'eigenvalue' is broken too ... (hangs forever) > > On what platform? Linux, Mandriva 2006 (gcc 4.0.1, etc.) > Are you linking against an optimized BLAS? Nope -- I tried the ba

Re: Numarray, numeric, NumPy, scpy_core ??!!

2006-01-23 Thread greg . landrum
Robert Kern wrote: > Sébastien Boisgérault wrote: > > > By the way, I tried numpy 0.9.4 10 minutes ago and guess > > what ? 'eigenvalue' is broken too ... (hangs forever) > > On what platform? Are you linking against an optimized BLAS? We can't fix > anything without details. I'll be happy to work

Re: Numarray, numeric, NumPy, scpy_core ??!!

2006-01-22 Thread Tim Hochberg
Szabolcs Nagy wrote: >>Basically all I need is vectors and 3x3 matrices. > > > hmm > is numpy really efficient for 3x3 (or 4x4) matrices and vectors? > > IMHO an optimized matrix4x4 class can be much faster (i'm just guessing > here) > > eg cgtypes is a simple c++ implementation with boost-pyth

Re: Numarray, numeric, NumPy, scpy_core ??!!

2006-01-22 Thread Szabolcs Nagy
> Basically all I need is vectors and 3x3 matrices. hmm is numpy really efficient for 3x3 (or 4x4) matrices and vectors? IMHO an optimized matrix4x4 class can be much faster (i'm just guessing here) eg cgtypes is a simple c++ implementation with boost-python wrapper: http://cgkit.sourceforge.ne

Re: Numarray, numeric, NumPy, scpy_core ??!!

2006-01-22 Thread Robert Kern
Sébastien Boisgérault wrote: > By the way, I tried numpy 0.9.4 10 minutes ago and guess > what ? 'eigenvalue' is broken too ... (hangs forever) On what platform? Are you linking against an optimized BLAS? We can't fix anything without details. I'll be happy to work with you on this bug over on th

Re: Numarray, numeric, NumPy, scpy_core ??!!

2006-01-22 Thread Sébastien Boisgérault
Robert Kern wrote: > J wrote: > > I will just jump in an use NumPy. I hope this one will stick and evolve > > into the mother of array packages. > > How stable is it ? For now I really just need basic linear algebra. > > i.e. matrix multiplication, dot, cross etc Same concern for me. I discovere

Re: Numarray, numeric, NumPy, scpy_core ??!!

2006-01-22 Thread Tom Anderson
On Sat, 21 Jan 2006, Robert Kern wrote: > Tom Anderson wrote: > >> Pardon my failure to RTFM, but does NumPy pick up the vecLib BLAS on Macs? > > Yes. Excellent, thanks. tom -- forget everything from school -- you are programmer -- http://mail.python.org/mailman/listinfo/python-list

Re: Numarray, numeric, NumPy, scpy_core ??!!

2006-01-22 Thread Lawrence Oluyede
"J" <[EMAIL PROTECTED]> writes: > I hope the title of this message indicates my question. I am looking > for basic > array functionality in Python and it turns out that there are all these > packages which > are somehow related. Some are allegedly discontinued but still seem to > get updated. It

Re: Numarray, numeric, NumPy, scpy_core ??!!

2006-01-21 Thread Robert Kern
Tom Anderson wrote: > Pardon my failure to RTFM, but does NumPy pick up the vecLib BLAS on Macs? Yes. -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Harter -- http://mail.python.org/mailman/listinfo/p

Re: Numarray, numeric, NumPy, scpy_core ??!!

2006-01-21 Thread Tom Anderson
On Sat, 21 Jan 2006, Travis E. Oliphant wrote: > J wrote: > >> I will just jump in an use NumPy. I hope this one will stick and evolve >> into the mother of array packages. How stable is it ? For now I really >> just need basic linear algebra. i.e. matrix multiplication, dot, cross >> etc > > T

Re: Numarray, numeric, NumPy, scpy_core ??!!

2006-01-21 Thread Travis E. Oliphant
J wrote: > I will just jump in an use NumPy. I hope this one will stick and evolve > into the mother of array packages. > How stable is it ? For now I really just need basic linear algebra. > i.e. matrix multiplication, dot, cross etc > There is a new release coming out this weekend. It's close

Re: Numarray, numeric, NumPy, scpy_core ??!!

2006-01-21 Thread Robert Kern
J wrote: > I will just jump in an use NumPy. I hope this one will stick and evolve > into the mother of array packages. > How stable is it ? For now I really just need basic linear algebra. > i.e. matrix multiplication, dot, cross etc That stuff isn't going to change on you. -- Robert Kern [EMAI

Re: Numarray, numeric, NumPy, scpy_core ??!!

2006-01-21 Thread J
I will just jump in an use NumPy. I hope this one will stick and evolve into the mother of array packages. How stable is it ? For now I really just need basic linear algebra. i.e. matrix multiplication, dot, cross etc Cheers -- http://mail.python.org/mailman/listinfo/python-list

Re: Numarray, numeric, NumPy, scpy_core ??!!

2006-01-21 Thread Robert Kern
J wrote: > Ok, I will look at NumPy ... > > I have another question about performance. Are the array operations > such as matrix multiplication implemented in > python or in C ? I was under the impression that the function calls in > numarray are only wrappers to C code, but now I suspect that mat

Re: Numarray, numeric, NumPy, scpy_core ??!!

2006-01-21 Thread J
Ok, I will look at NumPy ... I have another question about performance. Are the array operations such as matrix multiplication implemented in python or in C ? I was under the impression that the function calls in numarray are only wrappers to C code, but now I suspect that matrix multiplicaiton is

Re: Numarray, numeric, NumPy, scpy_core ??!!

2006-01-21 Thread Colin J. Williams
J wrote: > Hi > > I hope the title of this message indicates my question. I am looking > for basic > array functionality in Python and it turns out that there are all these > packages which > are somehow related. Some are allegedly discontinued but still seem to > get updated. Could we start a dis

Re: Numarray, numeric, NumPy, scpy_core ??!!

2006-01-20 Thread Robert Kern
Claudio Grondi wrote: > I decided to use numarray, so maybe you can report what your problem/bug > is before I run into it myself? The reason why I decided to use numarray > was, that the whole scpy_core story seems to get more or less commercial > and its free version comes because of this wit

Re: Numarray, numeric, NumPy, scpy_core ??!!

2006-01-20 Thread Robert Kern
J wrote: > Hi > > I hope the title of this message indicates my question. I am looking > for basic > array functionality in Python and it turns out that there are all these > packages which > are somehow related. Some are allegedly discontinued but still seem to > get updated. Could we start a dis

Re: Numarray, numeric, NumPy, scpy_core ??!!

2006-01-20 Thread Claudio Grondi
J wrote: > Hi > > I hope the title of this message indicates my question. I am looking > for basic > array functionality in Python and it turns out that there are all these > packages which > are somehow related. Some are allegedly discontinued but still seem to > get updated. Could we start a dis

Re: numarray :: multiplying all the elements in 1d array

2005-12-21 Thread Tim Hochberg
Mandus wrote: > Tue, 20 Dec 2005 19:32:13 +0530 skrev Suresh Jeevanandam: > >>Hi all, >> Lets say I have an array: >> from numarray import * >> a = array([ 6, 7, 8, 9, 10, 11, 12]) >> >> I want to multiply out all the elements and get the result. >> >> r = 1.0 >>

Re: numarray :: multiplying all the elements in 1d array

2005-12-20 Thread Robert Kern
Suresh Jeevanandam wrote: > Hi all, > Lets say I have an array: > from numarray import * > a = array([ 6, 7, 8, 9, 10, 11, 12]) > > I want to multiply out all the elements and get the result. > > r = 1.0 > for i in a: > r = r*i > >

Re: numarray :: multiplying all the elements in 1d array

2005-12-20 Thread Mandus
Tue, 20 Dec 2005 19:32:13 +0530 skrev Suresh Jeevanandam: > Hi all, > Lets say I have an array: > from numarray import * > a = array([ 6, 7, 8, 9, 10, 11, 12]) > > I want to multiply out all the elements and get the result. > > r = 1.0 > for i in a: >

Re: Numarray question

2005-05-13 Thread Robert Kern
Matt Feinstein wrote: > If I try > > 2 < array([1,2,3]) > > > I get: > > array([0, 0, 1], type=Bool) > > which is pretty slick, However if I set > > q = 2 < array([1,2,3]) q and q > > > I get a runtime error: "An array doesn't make sense as a truth value." > > So.. why not?

Re: Numarray newbie question

2005-03-31 Thread Colin J. Williams
ChinStrap wrote: I know there are probably alternatives for this with the standard library, but I think that would kill the speed I get with numarray: Say I have two 2-dimensional numarrays (x_mat and y_mat, say), and a function f(x,y) that I would like to evaluate at every index. Basically I want

Re: Numarray newbie question

2005-03-29 Thread ChinStrap
Oh well. I am downloading all the things to build it, but in the mean time I just did: def get_y_mat(x_ind,y_ind): return self.y_min + y_ind*self.dy def get_x_mat(x_ind,y_ind): return self.x_min + x_ind*self.dx self.x_mat=fromfunction(get_x_mat,m

Re: Numarray newbie question

2005-03-29 Thread Robert Kern
ChinStrap wrote: Are there no windows binaries for SciPy for python 2.4 yet? I try to run the installer and it complains that it can't find python 2.3. No, not yet. Besides that, vectorize is exactly what i want. -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where the grass grows high A

Re: Numarray newbie question

2005-03-29 Thread ChinStrap
Are there no windows binaries for SciPy for python 2.4 yet? I try to run the installer and it complains that it can't find python 2.3. Besides that, vectorize is exactly what i want. -- http://mail.python.org/mailman/listinfo/python-list

Re: Numarray newbie question

2005-03-28 Thread Robert Kern
ChinStrap wrote: I know there are probably alternatives for this with the standard library, but I think that would kill the speed I get with numarray: Say I have two 2-dimensional numarrays (x_mat and y_mat, say), and a function f(x,y) that I would like to evaluate at every index. Basically I want