Re: [Numpy-discussion] multiprocessing, numpy and 32-64 bit cohabitation

2013-09-18 Thread Robert Kern
On Wed, Sep 18, 2013 at 1:51 AM, Antony Lee antony@berkeley.edu wrote: Hi all, While I realize that this is certainly tweaking multiprocessing beyond its specifications, I would like to use it on Windows to start a 32-bit Python process from a 64-bit Python process (use case: I need to

Re: [Numpy-discussion] Using setuptools develop mode with numpy distutils

2013-09-18 Thread Robert Kern
On Wed, Sep 18, 2013 at 12:16 AM, Chris Barker chris.bar...@noaa.gov wrote: Hi, I need to use numpy's distutils Extension to build a fortran / f2py extension. But I also really like setuptools' develop mode. Just import setuptools before doing the numpy.distutils imports. You don't need to

[Numpy-discussion] ANN: SfePy 2013.3

2013-09-18 Thread Robert Cimrman
I am pleased to announce release 2013.3 of SfePy. Description --- SfePy (simple finite elements in Python) is a software for solving systems of coupled partial differential equations by the finite element method. The code is based on NumPy and SciPy packages. It is distributed under the

[Numpy-discussion] ValueError: matrices are not aligned!!!

2013-09-18 Thread Happyman
Hello, I am trying to solve linear Ax=b problem, but some error occurs in the process like:  -- Traceback (most recent call last): File C:\Python27\Conjugate_Gradient.py, line 66, in module x, iter_number = conjGrad(Av,A, x, b) File

Re: [Numpy-discussion] ValueError: matrices are not aligned!!!

2013-09-18 Thread Bradley M. Froehle
In [2]: %debug ipython-input-1-2084f8a2223e(5)Av() 4 def Av(A,v): 5 return np.dot(A,v) 6 ipdb !A.shape (4, 8) ipdb !v.shape (4,) In your code it looks like you are essentially computing A.dot(v) where A is a 4-by-8 matrix and v is vector of length 4. That's what the error

Re: [Numpy-discussion] ANN: SfePy 2013.3

2013-09-18 Thread Robert Cimrman
Dear Josè, On 09/18/2013 07:10 PM, Josè Luis Mietta wrote: Dear Robert. Im intresting in modeling mechanical deformation of magnetorheological elastomers (material formed by inorganic chains inserting in a polymeric matrix -see figure 2 in the attached file-). The inorganic chais are like

Re: [Numpy-discussion] Using setuptools develop mode with numpy distutils

2013-09-18 Thread Chris Barker
On Wed, Sep 18, 2013 at 2:20 AM, Robert Kern robert.k...@gmail.com wrote: Just import setuptools before doing the numpy.distutils imports. You don't need to use setuptools.setup() in order to get access to the setuptools-added commands. Thanks --- that works fine -- I could have sworn I

Re: [Numpy-discussion] ValueError: matrices are not aligned!!!

2013-09-18 Thread Happyman
I understand ,sometimes, it is normal that number of equations are less or more than number of unknowns that means non square matrix appearance. If so,  how  would you compose Av(v) function, because I have only constant dimensional values such as A matrix(MxN) and array b array (M)??? Среда,

Re: [Numpy-discussion] multiprocessing, numpy and 32-64 bit cohabitation

2013-09-18 Thread Antony Lee
Thanks, I didn't know that multiprocessing Managers could be used with processes not started by multiprocessing itself... I will give them a try. I just need to compute FFTs, but speed is a real issue for me (I am using the results for real-time feedback). To be honest I don't know yet if the