Re: [Numpy-discussion] question about numpy

2007-06-15 Thread David M. Cooke
On Tue, Jun 12, 2007 at 11:58:28AM -0400, Xuemei Tang wrote: > Dear Sir/Madam, > > I meet a problem when I installed numpy. I installed numpy by the command > "python setup.py install". Then I tested it by "python -c 'import numpy; > numpy.test()'". But it doesn't work. There is an error message:

[Numpy-discussion] Is this an indexing bug?

2007-06-15 Thread Tom K.
>>> h = zeros((1, 4, 100)) >>> h[0,:,arange(14)].shape (14, 4) ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] randint for long type (permutations)

2007-06-15 Thread Will Woods
The range of N I need is from 5-100, which spans the highly likely to highly improbable for M around 1000-1. The permutation can be derived from an integer using the algorithm here: http://en.wikipedia.org/wiki/Permutation I have found the solution to the random number generator in the ran

[Numpy-discussion] question about numpy

2007-06-15 Thread Xuemei Tang
Dear Sir/Madam, I meet a problem when I installed numpy. I installed numpy by the command "python setup.py install". Then I tested it by "python -c 'import numpy; numpy.test()'". But it doesn't work. There is an error message: "Running from numpy source directory. Traceback (most recent call last)

[Numpy-discussion] Building NumPy 1.0.3 on SGI/IRIX system

2007-06-15 Thread Atro Tossavainen
(Am not a list member, please cc copies to me explicitly.) Regarding recent conversation between Charles R Harris and Mary Haley: 1) The problem with Numpy is that *something* causes -L/usr/lib to be included explicitly. This should never be done! The compiler ABI switches -32, -n32, -64

[Numpy-discussion] numpy 1.0.3 import error

2007-06-15 Thread Kathy Frank
I receive the following error when I try to import numpy: $ python Python 2.5.1 (r251:54863, Jun 10 2007, 14:46:50) [GCC 3.4.6 [FreeBSD] 20060305] on freebsd6 Type "help", "copyright", "credits" or "license" for more information. >>> import numpy Traceback (most recent call last): File "", line

[Numpy-discussion] f2py and type construct

2007-06-15 Thread lorenzo bolla
hi all. I'm trying to compile an F90 source file with f2py, but it fails with the construct "type ... end type". here is an example: ! file test19.f90 module basic implicit none save integer, parameter :: ciao = 17 end module basic module basic2 implicit n

Re: [Numpy-discussion] Specifying compiler command line options for numpy.disutils.core

2007-06-15 Thread Christopher Barker
David Cournapeau wrote: > The problem is (at least for me, who just go > through the pain for windows users :) ) that VS2003 is not available > anymore for free... while MS isn't distributing it, there area lot of copies floating around, and I don't think it's illegal to distribute them (anyone

Re: [Numpy-discussion] randint for long type (permutations)

2007-06-15 Thread Robert Kern
Will Woods wrote: > > The range of N I need is from 5-100, which spans the highly likely to > highly improbable for M around 1000-1. The permutation can be > derived from an integer using the algorithm here: > http://en.wikipedia.org/wiki/Permutation Actually, I take it back. It's not as b

Re: [Numpy-discussion] randint for long type (permutations)

2007-06-15 Thread Robert Kern
Will Woods wrote: > > The range of N I need is from 5-100, which spans the highly likely to > highly improbable for M around 1000-1. The permutation can be > derived from an integer using the algorithm here: > http://en.wikipedia.org/wiki/Permutation You really, really don't want to do it

Re: [Numpy-discussion] masked arrays and record arrays

2007-06-15 Thread Pierre GM
On Thursday 14 June 2007 09:19:06 John Hunter wrote: > On 6/13/07, Pierre GM <[EMAIL PROTECTED]> wrote: > > Have you tried mrecords, in the alternative maskedarray package available > > on the scipy SVN ? > I would be happy to try this out -- do you happen to have an example > that shows how to se

Re: [Numpy-discussion] attribute names on record arrays

2007-06-15 Thread Tom Denniston
One thing I've done in situations like this where you want names of dynamic fields to be available for tab completion but the object has other methods and instance variables that might conflict is to use a proxy object that just contains the fields. So for instance you have a property called F tha

Re: [Numpy-discussion] Specifying compiler command line options for numpy.disutils.core

2007-06-15 Thread Christian Marquardt
On Fri, June 15, 2007 06:01, David Cournapeau wrote: > I think it is important to separate different issues: object code > compatibility, runtime compatibility, etc... Those are different issues. > First, mixing ICC compiled code and gcc code *has* to be possible (I > have never tried), otherwise,

Re: [Numpy-discussion] randint for long type (permutations)

2007-06-15 Thread Will Woods
The range of N I need is from 5-100, which spans the highly likely to highly improbable for M around 1000-1. The permutation can be derived from an integer using the algorithm here: http://en.wikipedia.org/wiki/Permutation I have found the solution to the random number generator in the ra