Re: [Numpy-discussion] how to vectorize a row of eigenvalue computations ?

2008-10-16 Thread Charles R Harris
On Thu, Oct 16, 2008 at 1:22 PM, LB <[EMAIL PROTECTED]> wrote: > I've got an array S of shape (N, 6) with N >> 10 containing the > six components of a stress field given in N points. > > I need to make a lot of computation of principal stresses, which are > in fact the eigenvalues of the stres

Re: [Numpy-discussion] numpy fileIO

2008-10-16 Thread Gary Ruben
Prashant Saxena wrote: > I am seeing all the OSS for this purpose but I would stick to use pure > python and the scene graph I am developing for the application. I > already did some test using pyOpenGL/python/wx.GLcanvas and a large data > set of roughly 4000+ objects consisting nearly 1 millio

Re: [Numpy-discussion] how to tell if a point is inside a polygon

2008-10-16 Thread Rob Hetland
On Oct 16, 2008, at 1:54 PM, John Hunter wrote: > It is already in matplotlib > > In [1]: import matplotlib.nxutils as nx > > In [2]: nx.pnpoly > Out[2]: > > In [3]: nx.points_inside_poly > Out[3]: > > but one of should add it to the FAQ! I did not know that very useful thing. But now I do.

[Numpy-discussion] how to vectorize a row of eigenvalue computations ?

2008-10-16 Thread LB
I've got an array S of shape (N, 6) with N >> 10 containing the six components of a stress field given in N points. I need to make a lot of computation of principal stresses, which are in fact the eigenvalues of the stress tensors. I'm using the basic code described below : import numpy as n

Re: [Numpy-discussion] how to tell if a point is inside a polygon

2008-10-16 Thread John Hunter
On Thu, Oct 16, 2008 at 1:25 PM, Rob Hetland <[EMAIL PROTECTED]> wrote: > This question gets asked about once a month on the mailing list. > Perhaps pnpoly could find a permanent home in scipy? (or somewhere?) > Obviously, many would find it useful. It is already in matplotlib In [1]: import mat

Re: [Numpy-discussion] how to tell if a point is inside a polygon

2008-10-16 Thread Rob Hetland
On Oct 14, 2008, at 12:56 AM, Stéfan van der Walt wrote: > Here is an implementation in Python, ctypes and in weave: > > http://mentat.za.net/source/pnpoly.tar.bz2 > > Regards > Stéfan This question gets asked about once a month on the mailing list. Perhaps pnpoly could find a permanent home i

Re: [Numpy-discussion] numpy fileIO

2008-10-16 Thread Prashant Saxena
I have just started doing my tests using numpy and hdpy( http://h5py.alfven..org/ ). Hope either of these would give me what I need. Prashant - Original Message From: Francesc Alted <[EMAIL PROTECTED]> To: Discussion of Numerical Python Sent: Thursday, 16 October, 2008 10:03:22 PM Su

Re: [Numpy-discussion] Missing numpy.i

2008-10-16 Thread David Cournapeau
On Thu, Oct 16, 2008 at 10:20 PM, Stéfan van der Walt <[EMAIL PROTECTED]> wrote: > This may have been an oversight. The docs directory moved out of the > source tree, so it needs to be added to the installer separately. > David, could we install the docs dir as well? Yes, as long as it is handle

Re: [Numpy-discussion] numpy fileIO

2008-10-16 Thread Francesc Alted
A Thursday 16 October 2008, Prashant Saxena escrigué: > Hi, > > I have never used numpy in my python applications until now. I am > writing a python/openGL based tool to manipulate 3d geometrical > data(meshes, curve, points etc.) I would be using numpy to store > these objects(vertices, edges, fac

Re: [Numpy-discussion] numpy fileIO

2008-10-16 Thread Christopher Barker
Ravi wrote: > Use HDF5. Can be read/written using C, C++, Python, Matlab, Octave, Fortran > and practically any other language you can think of. Python interface is at > http://h5py.alfven.org there is also pytables, which providers a nice numpy/HDF interface. http://www.pytables.org/ -Chris

Re: [Numpy-discussion] numpy fileIO

2008-10-16 Thread Ravi
On Thursday 16 October 2008 07:12:06 Prashant Saxena wrote: > Here is the summery of IO operations I would be working on: > > 1. Write different structures to a file. > 2. Read data back from file. > 3. if structure can be tagged(int or string) then read a particular > structure using tag, from fil

Re: [Numpy-discussion] numpy fileIO

2008-10-16 Thread Prashant Saxena
I am seeing all the OSS for this purpose but I would stick to use pure python and the scene graph I am developing for the application. I already did some test using pyOpenGL/python/wx.GLcanvas and a large data set of roughly 4000+ objects consisting nearly 1 million polygons using display lists

Re: [Numpy-discussion] numpy fileIO

2008-10-16 Thread Nadav Horesh
Did you consider VTK? I've used it a *little*: Probably it contains all the structures you need, along with c++ routines for I/O, manipulation and (OpenGL) display, and a python interface. Nadav. -הודעה מקורית- מאת: [EMAIL PROTECTED] בשם Prashant Saxena נשלח: ה 16-אוקטובר-08 13:12 אל:

Re: [Numpy-discussion] Missing numpy.i

2008-10-16 Thread Stéfan van der Walt
2008/10/16 Nicolas ROUX <[EMAIL PROTECTED]>: > Thanks for your reply ;-) > > In fact, I was talking about the 1.20 release installer, which is not > including the numpy.i any more. This may have been an oversight. The docs directory moved out of the source tree, so it needs to be added to the ins

Re: [Numpy-discussion] Missing numpy.i

2008-10-16 Thread Nicolas ROUX
Thanks for your reply ;-) In fact, I was talking about the 1.20 release installer, which is not including the numpy.i any more. Is this numpy.i not any more part of the binary delivery/installer ? Should I take it manually/directly from the SVN repository, instead of beeing installed automatically

Re: [Numpy-discussion] Missing numpy.i

2008-10-16 Thread Stéfan van der Walt
2008/10/16 Nicolas ROUX <[EMAIL PROTECTED]>: > Under windows, using the latest numpy 1.20 and Swig release, I can't find > anymore the numpy.i file. > I used to find it in numpy/doc/ in the release 1.04. The docs dir has moved: http://projects.scipy.org/scipy/numpy/browser/trunk/doc/swig Cheers

Re: [Numpy-discussion] Missing numpy.i

2008-10-16 Thread Nicolas ROUX
Hello, Under windows, using the latest numpy 1.20 and Swig release, I can't find anymore the numpy.i file. I used to find it in numpy/doc/ in the release 1.04. I tried to look some info the web without any success. Thanks for you help, Cheers, Nicolas. ___

[Numpy-discussion] numpy fileIO

2008-10-16 Thread Prashant Saxena
Hi, I have never used numpy in my python applications until now. I am writing a python/openGL based tool to manipulate 3d geometrical data(meshes, curve, points etc.) I would be using numpy to store these objects(vertices, edges, faces, index etc.) at run time. One of my major concern is numpy'