Re: [Numpy-discussion] PY_ARRAY_UNIQUE_SYMBOL is too far reaching?

2010-05-05 Thread Austin Bingham
> I still don't understand why you cannot just include the header file as > is (without defining any of NO_IMPORT/PY_ARRAY_UNIQUE_SYMBOL). I guess the real point is that no matter what definition (or lack thereof) that I have for these macros, I still introduce header order dependencies to users o

Re: [Numpy-discussion] Brooken Toolchain (Mac 10.6)

2010-05-05 Thread Patrick Marsh
I apologize for not following up on this thread right away. I was sick for a couple of days and then there were several major severe weather outbreaks that required me to spend more time at work. With this said, I've resumed trying to build a DMG with Python2.5. The "export" suggestion below wor

Re: [Numpy-discussion] PY_ARRAY_UNIQUE_SYMBOL is too far reaching?

2010-05-05 Thread David
On 05/04/2010 04:38 PM, Austin Bingham wrote: > > I admit I'm having trouble formulating questions to address my > problems, so please bear with me. > > Say I've got a shared library of utilities for working with numpy > arrays. It's intended to be used in multiple extension modules and in > some

[Numpy-discussion] Fwd: [SciPy-Dev] numpy 1.4.1 f2py on Snow Leopard.

2010-05-05 Thread Charles سمير Doutriaux
I'm forwarding this to the numpy list as well since it seems to be f2py related therefore belonging here really.C.Begin forwarded message:From: Charles سمير Doutriaux Date: April 30, 2010 9:10:08 AM PDTTo: SciPy Developers List Subject: Re: [SciPy-Dev] nump

[Numpy-discussion] numpy 1.4.1 f2py on Snow Leopard.

2010-05-05 Thread Charles سمير Doutriaux
Hello, I jsut built numpy 1.4.1 on my mac (64bit only no universal) Now f2py fails building any fortran code... my python: 2.6.5 meryem /svn/cdat/trunk >gcc --version i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5646) (dot 1) Copyright (C) 2007 Free Software Foundation, Inc. This

[Numpy-discussion] embedding/extending numpy:import _array() problem

2010-05-05 Thread tino
Hi guys, I've a C++ code that calls a python script. The python script, in turn, should use C modules to retrieve data (arrays). I'm having some problem with import_array. I've placed the import_array() just after the initialization of the interpreter and after PyInit_module Py_Initialize

Re: [Numpy-discussion] 3d plane to point cloud fitting using SVD

2010-05-05 Thread Stéfan van der Walt
Hi Peter On 5 May 2010 10:02, Peter Schmidtke wrote: > u,s,vh=numpy.linalg.linalg.svd(M) > > Then in the matlab analog they use the last column of vh to get the a,b,c > coefficients for the equation > a,b,c=vh[:, -1] in numpy Note that vh is the conjugate transpose of v. You are probably intere

[Numpy-discussion] BUG: NumPy exposes the wrong include directory

2010-05-05 Thread Stéfan van der Walt
Hi all, Under Ubuntu, the NumPy headers are dumped under /usr/include/python2.6. This is not the location that should be exposed when another copy of NumPy is installed. The attached patch lets from numpy.distutils.system_info import get_info print get_info['numpy'] return the correct path. H

[Numpy-discussion] 3d plane to point cloud fitting using SVD

2010-05-05 Thread Peter Schmidtke
Dear Numpy Users, I want to fit a 3d plane into a 3d point cloud and I saw that one could use svd for this purpose. So as I am very fond of numpy I saw that svd was implementented in the linalg module. Currently I have a numpy array called xyz with n lines (number of points) and 3 columns (x,y,z

Re: [Numpy-discussion] Improvement of performance

2010-05-05 Thread Guilherme P. de Freitas
Just to make this thread more useful for someone interested in these topics, this seems to be "the book" on automatic differentiation (it's one of the references in the autodiff website) "Evaluating Derivatives: Principles and Techniques of Algorithmic Differentiation" (2nd ed.), by Andreas Griewa