Re: [Numpy-discussion] cython/swigpyrex examples and docs

2010-07-31 Thread Ralf Gommers
On Sun, Aug 1, 2010 at 12:35 AM, Bill Spotz wrote: > > On Jul 31, 2010, at 12:32 AM, Ralf Gommers wrote: > > > How about removing the swig html and pdf docs, and then including the swig/pyrex/cython dirs as-is? In setup.py: > > Note that the html and pdf documents are created from the txt file usi

Re: [Numpy-discussion] np.asfortranarray: unnecessary copying?

2010-07-31 Thread Kurt Smith
On Fri, Jul 30, 2010 at 1:33 PM, Anne Archibald wrote: > This seems to me to be a bug, or rather, two bugs. 1D arrays are > automatically Fortran-ordered, so isfortran should return True for > them (incidentally, the documentation should be edited to indicate > that the data must also be contiguou

Re: [Numpy-discussion] additions to random: innovative names vs. algorithm specification

2010-07-31 Thread Sturla Molden
> On Thu, Jul 29, 2010 at 19:26, Sturla Molden wrote: >> http://groups.google.com/group/sci.math/msg/dc9ad178113a30fd > > It looks like it has a little bit more peer review to get through, but > thanks for the pointer! That's probably the best motivation I've seen > to do the refactoring of the n

Re: [Numpy-discussion] str == int puzzlement

2010-07-31 Thread Matthew Brett
Hi, > Yeah, it's just that numpy knows that it cannot compare pears with apples: > a = numpy.asarray(['a', 'b']) a.__eq__(1) > NotImplemented Thank you - that's very helpful and clear. > Maybe it would be better to raise a ValueError, which is not caught by > the evaluation mechanism,

Re: [Numpy-discussion] cython/swigpyrex examples and docs

2010-07-31 Thread Bill Spotz
On Jul 31, 2010, at 12:32 AM, Ralf Gommers wrote: > How about removing the swig html and pdf docs, and then including the > swig/pyrex/cython dirs as-is? In setup.py: Note that the html and pdf documents are created from the txt file using the docutils utilities rts2html.py and rst2latex.py. *

Re: [Numpy-discussion] Unable to get most basic numpy array creation from C++ working.

2010-07-31 Thread rif
On Fri, Jul 30, 2010 at 10:17 PM, Kevin Jacobs < bioinfor...@gmail.com> wrote: > On Fri, Jul 30, 2010 at 10:08 PM, rif wrote: > >> Hi numpy-discuss >> . >> I've distilled my problem down to a very simple program that segfaults. >> I'm sure I'm doing something silly, but hopefully someone can poi

Re: [Numpy-discussion] test errors in the trunk

2010-07-31 Thread Darren Dale
On Sat, Jul 31, 2010 at 7:22 AM, Ralf Gommers wrote: > > > On Sat, Jul 31, 2010 at 4:55 AM, Robert Kern wrote: >> >> On Fri, Jul 30, 2010 at 13:22, Darren Dale wrote: >> > I just upgraded my svn checkout and did a fresh install. When I try to >> > run the test suite, I get a ton of errors: >> >

Re: [Numpy-discussion] test errors in the trunk

2010-07-31 Thread Ralf Gommers
On Sat, Jul 31, 2010 at 4:55 AM, Robert Kern wrote: > On Fri, Jul 30, 2010 at 13:22, Darren Dale wrote: > > I just upgraded my svn checkout and did a fresh install. When I try to > > run the test suite, I get a ton of errors: > > > > > > np.test() > > Running unit tests for numpy > > NumPy versi

Re: [Numpy-discussion] str == int puzzlement

2010-07-31 Thread Friedrich Romstedt
2010/7/29 Keith Goodman : > On Wed, Jul 28, 2010 at 6:42 PM, Matthew Brett > wrote: >> Hi, >> >> Please forgive me if this is obvious, but this surprised me: >> >> In [15]: x = np.array(['a', 'b']) >> >> In [16]: x == 'a'  # this was what I expected >> Out[16]: array([ True, False], dtype=bool) >