The simple test below show the issue.
import sys
import numpy as np
from numpy.core import _internal
def f(a = np.zeros(4)):
a = np.zeros(4)
b = memoryview(a)
c = np.asarray(b)
print sys.getrefcount(_internal)
while 1:
f()
The patch it trivial (I've added a little extra, unr
Hi,
> Can numpy.distutils be directed to process *.pyx with Cython rather than
> Pyrex?
Yes, but at the moment I believe you have to monkey-patch numpy
distutils : see the top of
http://github.com/matthew-brett/nipy/blob/master/setup.py
and "generate_a_pyrex_source" around line 289 of:
http:/
On Fri, Jul 2, 2010 at 12:53 PM, Geoffrey Ely wrote:
> Hi All,
>
> Sorry if this has been documented or discussed already, but my searches have
> come up short. Can someone please recommend a way to setup both Cython and
> Fortran extensions in a single package with numpy.distutils (or something
Hi All,
Sorry if this has been documented or discussed already, but my searches have
come up short. Can someone please recommend a way to setup both Cython and
Fortran extensions in a single package with numpy.distutils (or something
else)? E.g.:
from numpy.distutils.core import setup, Extensi
On Jul 2, 2010, at 11:33 AM, Benjamin Root wrote:
> I want to do the same for the calculation of the kinetic energy:
> /2m. There is a laplacian in the volume integral which
> complicates things:
> K = 0.0
> for i in numpy.arange(len(dx)-1):
> for j in numpy.arange(len(dy)-1):
> for k
On 07/02/2010 01:45 PM, Keith Goodman wrote:
> On Fri, Jul 2, 2010 at 11:33 AM, Benjamin Root wrote:
>
>> I am moving this over to numpy-discussion maillist...
>>
>> I don't have a firm answer for you, but I did notice one issue in your
>> code. You call arange(len(dx) - 1) for your loops, bu
On Fri, Jul 2, 2010 at 11:45 AM, Keith Goodman wrote:
> On Fri, Jul 2, 2010 at 11:33 AM, Benjamin Root wrote:
>> I am moving this over to numpy-discussion maillist...
>>
>> I don't have a firm answer for you, but I did notice one issue in your
>> code. You call arange(len(dx) - 1) for your loops
On Fri, Jul 2, 2010 at 11:33 AM, Benjamin Root wrote:
> I am moving this over to numpy-discussion maillist...
>
> I don't have a firm answer for you, but I did notice one issue in your
> code. You call arange(len(dx) - 1) for your loops, but you probably really
> need arange(1, len(dx) - 1) becau
I am moving this over to numpy-discussion maillist...
I don't have a firm answer for you, but I did notice one issue in your
code. You call arange(len(dx) - 1) for your loops, but you probably really
need arange(1, len(dx) - 1) because you are accessing elements both after
*and* before the curren
On Sat, Jul 3, 2010 at 1:58 AM, Robin wrote:
> On Fri, Jul 2, 2010 at 5:47 PM, David Cournapeau wrote:
>>
>> The problem may be that matlab is built with one runtime, and Python
>> with another Unless your matlab is very recent, it is actually
>> quite likely to be compiled with VS 2005, whic
That's an excellent point.
I've noticed on my (Linux) workstation that pymex works fine, but
PyCUDA fails to import properly, because PyCUDA is a Boost::Python
project and expects a different libstdc++ than the one that MATLAB
jams into its LD_LIBRARY_PATH. (I got around this using an evil
LD_PRELO
On Fri, Jul 2, 2010 at 5:47 PM, David Cournapeau wrote:
>
> The problem may be that matlab is built with one runtime, and Python
> with another Unless your matlab is very recent, it is actually
> quite likely to be compiled with VS 2005, which means you should use
> python 2.5 instead (or buil
On Sat, Jul 3, 2010 at 1:37 AM, Robin wrote:
> Hi,
>
> Sorry for the offtopic post but I wondered if any Windows experts who
> are familiar with topics like linking python on windows and visual
> studio runtimes etc. might be able to help.
>
> I'm on a bit of a mission to get pymex built for 64 bi
Hi,
Sorry for the offtopic post but I wondered if any Windows experts who
are familiar with topics like linking python on windows and visual
studio runtimes etc. might be able to help.
I'm on a bit of a mission to get pymex built for 64 bit windows. Pymex
( http://github.com/kw/pymex ) is a matla
Fri, 02 Jul 2010 14:56:47 +0200, Tillmann Falck wrote:
> I am hitting a memory leak with the combination of numpy and
> cvxopt.matrix. As I am not where it occurs, I am cross posting.
Probably a bug in cvxopt, as also the following leaks memory:
from cvxopt import
Hi,
> Can you copyright a word ? I thought this was the trademark part of
> the law. For example, "linux" is a trademark owned by Linus Torvald.
> Also, well known packages use words which are at least as common as
> bento in English (sphinx, twisted, etc...), and as likely to be
> trademarked.
I
On Jul 2, 2010, at 1:11 AM, David Cournapeau wrote:
> On Fri, Jul 2, 2010 at 1:56 PM, Robert Pyle
> wrote:
>> Hi,
>>
>> While I agree that toydist needs a new name, Bento might not be a
>> good
>> choice. It's already the name of a database system for Macintosh
>> from
>> Filemaker, an Ap
Hi all,
I am hitting a memory leak with the combination of numpy and cvxopt.matrix. As
I am not where it occurs, I am cross posting.
On my machine (Fedora 13, x86_64) this example quickly eats up all my memory.
---
from cvxopt import matrix
import numpy as np
N = 2000
X = np.ones((N,
On 07/02/2010 05:05 PM, Dag Sverre Seljebotn wrote:
> David Cournapeau wrote:
>> On Fri, Jul 2, 2010 at 1:56 PM, Robert Pyle wrote:
>>
>>> Hi,
>>>
>>> While I agree that toydist needs a new name, Bento might not be a good
>>> choice. It's already the name of a database system for Macintosh from
>
David Cournapeau wrote:
> On Fri, Jul 2, 2010 at 1:56 PM, Robert Pyle wrote:
>
>> Hi,
>>
>> While I agree that toydist needs a new name, Bento might not be a good
>> choice. It's already the name of a database system for Macintosh from
>> Filemaker, an Apple subsidiary. I'd be *very* surprise
Dear all,
Perhaps this is a bit off topic for the mailing list, but this is
probably the only mailing list that is common to users of all python
plotting packages.
I am trying to find a python implementation of ternary/triangular plots:
http://en.wikipedia.org/wiki/Ternary_plot
but I have bee
21 matches
Mail list logo