[Numpy-discussion] remove need for site.cfg on default

2009-01-13 Thread Jarrod Millman
Due to the fact that I was tired of adding site.cfg to scipy and numpy when building on Fedora and Ubuntu systems as well as a scipy ticket (http://scipy.org/scipy/numpy/ticket/985), I decided to try and add default system paths to numpy.distutils. You can find out more details on this ticket: h

Re: [Numpy-discussion] coding style: citations

2009-01-13 Thread Tim Michelsen
> If I understand, you are using bib4txt.py to do this? Yes, I use bib4txt.py. The extension just runs bib4txt.py over all documents to extract the citations. Then it creates the reference file. The bibtex file is also converted to ReSt using your tools. But since the bibstuff needs the citation

Re: [Numpy-discussion] coding style: citations

2009-01-13 Thread Robert Kern
On Tue, Jan 13, 2009 at 13:36, Alan G Isaac wrote: > On 1/13/2009 1:55 PM Tim Michelsen apparently wrote: >> Please have a look at: >> http://bitbucket.org/birkenfeld/sphinx/issue/63/make-sphinx-read-bibtex-files-for >> >> And the example Sphinx project at: >> #3 - >> http://bitbucket.org/birkenfe

Re: [Numpy-discussion] coding style: citations

2009-01-13 Thread Alan G Isaac
On 1/13/2009 1:55 PM Tim Michelsen apparently wrote: > Please have a look at: > http://bitbucket.org/birkenfeld/sphinx/issue/63/make-sphinx-read-bibtex-files-for > > And the example Sphinx project at: > #3 - > http://bitbucket.org/birkenfeld/sphinx/issue/63/make-sphinx-read-bibtex-files-for#comme

Re: [Numpy-discussion] coding style: citations

2009-01-13 Thread Tim Michelsen
Hello, I really like the discussion here. > Originally I was just pointing out a problem. > Proposing a good solution requires some discussion. > The problem has also changed because of a suggestion > that the docs should be usable for book compilation, > and I am very uncertain how that is conce

Re: [Numpy-discussion] coding style: citations

2009-01-13 Thread Alan G Isaac
> 2009/1/13 Alan G Isaac : >> There really is no substitute for using real cite keys >> and a central database of citations. On 1/13/2009 9:44 AM Stéfan van der Walt apparently wrote: > How do you propose getting the citations into the docstrings? Each > docstring needs a copy of its references,

Re: [Numpy-discussion] ndarray.resize method and reference counting

2009-01-13 Thread Scott Sinclair
I thought it was a self contained snippet ;-) Here's another attempt that shows "_" is the cause of my confusion. >>> import numpy as np >>> x = np.eye(3) >>> x array([[ 1., 0., 0.], [ 0., 1., 0.], [ 0., 0., 1.]]) >>> x.resize((5,5)) Traceback (most recent call last): File "

Re: [Numpy-discussion] coding style: citations

2009-01-13 Thread Stéfan van der Walt
2009/1/13 Alan G Isaac : > There really is no substitute for using real cite keys > and a central database of citations. How do you propose getting the citations into the docstrings? Each docstring needs a copy of its references, and those references may be to specific pages. I don't recall ReST

Re: [Numpy-discussion] coding style: citations

2009-01-13 Thread Alan G Isaac
> 2009/1/12 Alan G Isaac : >> Numerical keys will clearly *not* be consistent. >> The same key will refer to different citations >> on different pages, and key width will not be >> uniform. On 1/12/2009 2:35 AM Stéfan van der Walt apparently wrote: > We automatically renumber the citations to tak

Re: [Numpy-discussion] inplace matrix multiplication

2009-01-13 Thread Frédéric Bastien
Thanks, and sorry for the delayed reply. Fred On Fri, Jan 9, 2009 at 4:31 PM, Robert Kern wrote: > On Fri, Jan 9, 2009 at 08:25, Frédéric Bastien wrote: > > Hi, > > > > I would like to know how I can make a call to the blas function gemm in > > numpy. I need a multiply and accumulate for matri

[Numpy-discussion] PyExc_IOError

2009-01-13 Thread Igor Sylvester
Has anyone had problems with dynamically loading PyExc_IOError when embedding a cython module? While calling init below: *in main.c: *void init { Py_Initialize(); initmymodule(); do_somethind(); Py_Finalize(); } *in module.c:* cdef public void do_something(): import exceptions pr

Re: [Numpy-discussion] ndarray.resize method and reference counting

2009-01-13 Thread Stéfan van der Walt
Hi Scott I can't reproduce the problem below. Would you please send a self-contained snippet? Note that, in Python, "_" is a special variable that always points to the last result. In IPython there are several others. Cheers Stéfan 2009/1/13 Scott Sinclair : > # I don't expect this x = n

[Numpy-discussion] ndarray.resize method and reference counting

2009-01-13 Thread Scott Sinclair
Hi, I'm confused by the following: >>> import numpy as np >>> np.__version__ '1.3.0.dev6116' # I expect this >>> x = np.eye(3) >>> x.resize((5,5)) >>> x = np.eye(3) >>> y = x >>> x.resize((5,5)) Traceback (most recent call last): File "", line 1, in ValueError: cannot resize an array that has

Re: [Numpy-discussion] Fast function application on list of 2D points?

2009-01-13 Thread Eric LEBIGOT
Thank you so much for the suggestion, Paulo! Selecting 2D points in a list by creating an array 'mask' of booleans and then using arr[mask, :] is indeed really fast compared to using numpy.apply_along_axis(), in my case (simple "larger than" tests on individual coordinates). I had not realized