Re: [Numpy-discussion] random permutation

2007-01-13 Thread Robert Kern
Charles R Harris wrote: > > On 1/13/07, *Sebastian Haase* <[EMAIL PROTECTED] > > wrote: > > > > I understand this - but I thought the algorithm might involve some > rounding(-error) cases that would produce different results especially > when changing the C

Re: [Numpy-discussion] random permutation

2007-01-13 Thread Charles R Harris
On 1/13/07, Sebastian Haase <[EMAIL PROTECTED]> wrote: I understand this - but I thought the algorithm might involve some rounding(-error) cases that would produce different results especially when changing the CPU (intel vs. PowerPC). I found this to be true even for non pseudo-random code th

Re: [Numpy-discussion] recompiling needed for binary module after numpy 1.0

2007-01-13 Thread Robert Kern
Erin Sheldon wrote: > On 1/13/07, Robert Kern <[EMAIL PROTECTED]> wrote: > --snip-- >> Now, since the bug is actually in freetype, not matplotlib or numpy, I >> suggest >> finding a new build of freetype. I use MacPorts and have had absolutely no >> trouble with it. > > > I switched to using mac

Re: [Numpy-discussion] recompiling needed for binary module after numpy 1.0

2007-01-13 Thread Erin Sheldon
On 1/13/07, Robert Kern <[EMAIL PROTECTED]> wrote: --snip-- > > Now, since the bug is actually in freetype, not matplotlib or numpy, I suggest > finding a new build of freetype. I use MacPorts and have had absolutely no > trouble with it. I switched to using macports, and included your modificati

Re: [Numpy-discussion] recompiling needed for binary module after numpy 1.0

2007-01-13 Thread Robert Kern
Erin Sheldon wrote: > On 1/9/07, Robert Kern <[EMAIL PROTECTED]> wrote: >> Erin Sheldon wrote: >>> I'm finally getting to this, I'm on the road. Here is >>> what gdb gives me >>> >>> --snip-- >>> Reading symbols for shared libraries . done >>> Reading symbols for shared libraries . done >>> Readin

Re: [Numpy-discussion] recompiling needed for binary module after numpy 1.0

2007-01-13 Thread Erin Sheldon
On 1/9/07, Robert Kern <[EMAIL PROTECTED]> wrote: > Erin Sheldon wrote: > > I'm finally getting to this, I'm on the road. Here is > > what gdb gives me > > > > --snip-- > > Reading symbols for shared libraries . done > > Reading symbols for shared libraries . done > > Reading symbols for shared li

Re: [Numpy-discussion] random permutation

2007-01-13 Thread Stefan van der Walt
On Sat, Jan 13, 2007 at 10:01:59AM -0800, Keith Goodman wrote: > On 1/11/07, Robert Kern <[EMAIL PROTECTED]> wrote: > > Keith Goodman wrote: > > > Why is the first element of the permutation always the same? Am I > > > using random.permutation in the right way? > > > > >>> M.__version__ > > > '1.0r

Re: [Numpy-discussion] random permutation

2007-01-13 Thread Sebastian Haase
On 1/13/07, Keith Goodman <[EMAIL PROTECTED]> wrote: > On 1/13/07, Sebastian Haase <[EMAIL PROTECTED]> wrote: > > On 1/13/07, Keith Goodman <[EMAIL PROTECTED]> wrote: > > > On 1/13/07, Sebastian Haase <[EMAIL PROTECTED]> wrote: > > > > On 1/13/07, Keith Goodman <[EMAIL PROTECTED]> wrote: > > > > >

Re: [Numpy-discussion] random permutation

2007-01-13 Thread Keith Goodman
On 1/13/07, Sebastian Haase <[EMAIL PROTECTED]> wrote: > On 1/13/07, Keith Goodman <[EMAIL PROTECTED]> wrote: > > On 1/13/07, Sebastian Haase <[EMAIL PROTECTED]> wrote: > > > On 1/13/07, Keith Goodman <[EMAIL PROTECTED]> wrote: > > > > On 1/11/07, Robert Kern <[EMAIL PROTECTED]> wrote: > > > > > Ke

Re: [Numpy-discussion] random permutation

2007-01-13 Thread Sebastian Haase
On 1/13/07, Keith Goodman <[EMAIL PROTECTED]> wrote: > On 1/13/07, Sebastian Haase <[EMAIL PROTECTED]> wrote: > > On 1/13/07, Keith Goodman <[EMAIL PROTECTED]> wrote: > > > On 1/11/07, Robert Kern <[EMAIL PROTECTED]> wrote: > > > > Keith Goodman wrote: > > > > > Why is the first element of the perm

Re: [Numpy-discussion] random permutation

2007-01-13 Thread Keith Goodman
On 1/13/07, Sebastian Haase <[EMAIL PROTECTED]> wrote: > On 1/13/07, Keith Goodman <[EMAIL PROTECTED]> wrote: > > On 1/11/07, Robert Kern <[EMAIL PROTECTED]> wrote: > > > Keith Goodman wrote: > > > > Why is the first element of the permutation always the same? Am I > > > > using random.permutation

Re: [Numpy-discussion] random permutation

2007-01-13 Thread Sebastian Haase
On 1/13/07, Keith Goodman <[EMAIL PROTECTED]> wrote: > On 1/11/07, Robert Kern <[EMAIL PROTECTED]> wrote: > > Keith Goodman wrote: > > > Why is the first element of the permutation always the same? Am I > > > using random.permutation in the right way? > > > > >>> M.__version__ > > > '1.0rc1' > > >

Re: [Numpy-discussion] random permutation

2007-01-13 Thread Keith Goodman
On 1/11/07, Robert Kern <[EMAIL PROTECTED]> wrote: > Keith Goodman wrote: > > Why is the first element of the permutation always the same? Am I > > using random.permutation in the right way? > > >>> M.__version__ > > '1.0rc1' > > This has been fixed in more recent versions. > > http://projects.sc

Re: [Numpy-discussion] About extending NumPy with c

2007-01-13 Thread David Cournapeau
On 1/13/07, asaf david <[EMAIL PROTECTED]> wrote: > Hello > i want to write a c function that receive and process a numpy array. to do > so, i'm following this tutorial > http://numpy.scipy.org/numpydoc/numpy-13.html > as a start, i copy pasted the "A Simple Example" from the tutorial and > compile

Re: [Numpy-discussion] Need help for implementing a fast clip in numpy (was slow clip)

2007-01-13 Thread David Cournapeau
On 1/13/07, Francesc Altet <[EMAIL PROTECTED]> wrote: > El ds 13 de 01 del 2007 a les 14:42 +0900, en/na David Cournapeau va > escriure: > > > No, only if it's contiguous (I'm not sure about alignment) > > According to numpy ebook, you need alignement for deferencing > > pointers. But I guess non a

[Numpy-discussion] Can numpy compute ln(640320**3 + 744)/163**.5 to 30 places?

2007-01-13 Thread Dick Moores
Can python compute ln(640320**3 + 744)/163**.5 to 30 places? I ran across this the other day. It's value is said to be the same as pi to about 30 places. I'd like to know if it is possible to do this in python with numpy. A friend pointed out that the Windows Calculator gives about 30 significant

Re: [Numpy-discussion] Need help for implementing a fast clip in numpy (was slow clip)

2007-01-13 Thread Francesc Altet
El ds 13 de 01 del 2007 a les 14:42 +0900, en/na David Cournapeau va escriure: > > No, only if it's contiguous (I'm not sure about alignment) > According to numpy ebook, you need alignement for deferencing > pointers. But I guess non aligned arrays are not really common. Unaligned arrays can be qu

[Numpy-discussion] About extending NumPy with c

2007-01-13 Thread asaf david
Hello i want to write a c function that receive and process a numpy array. to do so, i'm following this tutorial http://numpy.scipy.org/numpydoc/numpy-13.html as a start, i copy pasted the "A Simple Example" from the tutorial and compiled the module as usual with no errors/warnings. however, when