Re: [Numpy-discussion] Adding an ndarray.dot method

2010-05-04 Thread David Goldsmith
On Thu, Apr 29, 2010 at 12:30 PM, Pauli Virtanen p...@iki.fi wrote: Wed, 28 Apr 2010 14:12:07 -0400, Alan G Isaac wrote: [clip] Here is a related ticket that proposes a more explicit alternative: adding a ``dot`` method to ndarray. http://projects.scipy.org/numpy/ticket/1456 I kind of

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

2010-05-03 Thread David Cournapeau
. PY_ARRAY_UNIQUE_SYMBOL should only be used when you want to split your extension into separately compilation units (object files). David ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Adding an ndarray.dot method

2010-04-30 Thread David Warde-Farley
see any downsides (except maybe adding one more to the huge list of methods ndarray already has). Wonderful. Thanks for jumping on it. David ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy

Re: [Numpy-discussion] Numpy compilation error

2010-04-30 Thread David Cournapeau
can check the path of the package after import: python -c import numpy; print numpy.__file__ David ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] proposing a beware of [as]matrix() warning

2010-04-28 Thread David Warde-Farley
really there for a good reason. IMHO, of course. David David ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Incomplete uninstall of 1.4.0 superpack

2010-04-28 Thread David
On 04/27/2010 01:08 AM, threexk threexk wrote: David Cournapeau wrote: On Mon, Apr 26, 2010 at 2:42 AM, threexk threexk thre...@hotmail.com wrote: Hello, I recently uninstalled the NumPy 1.4.0 superpack for Python 2.6 on Windows 7, and afterward a dialog popped up that said 1

Re: [Numpy-discussion] proposing a beware of [as]matrix() warning

2010-04-28 Thread David Warde-Farley
). David ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] proposing a beware of [as]matrix() warning

2010-04-28 Thread David Warde-Farley
about the other binary ops? I would say, matrix goes with matrix, array with array, never the two shall meet unless you explicitly coerce. The ability to mix the two in a single expression does more harm than good, IMHO. David ___ NumPy-Discussion

Re: [Numpy-discussion] Memory profiling NumPy code?

2010-04-26 Thread David Cournapeau
a workaround to share? I really just want to track a few arrays in a friendly way from within Python (I am aware of the existance of C-level profilers). I think heapy has some hooks so that you can add support for extensions. Maybe we could provide a C API in numpy to make this easy, David

Re: [Numpy-discussion] Aggregate memmap

2010-04-25 Thread David Huard
Hi Matt, I don't think the memmap code support this. However, you can stack memmaps just as easily as arrays, so if you define individual memmaps for each slice and stack them (numpy.vstack), the resulting array will behave as a regular 3D array. HTH, David H. On Wed, Apr 21, 2010 at 3:41 PM

Re: [Numpy-discussion] Disabling Extended Precision in NumPy (like -ffloat-store)

2010-04-25 Thread David Warde-Farley
the CPU version :) http://deeplearning.net/software/theano/ David ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] toydist: Using manually after build system now?

2010-04-25 Thread David Cournapeau
comments are welcomed there, cheers, David ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Disabling Extended Precision in NumPy (like -ffloat-store)

2010-04-25 Thread David Cournapeau
solutions I could see are: using an enviroment geared toward IEEE 754 compliance (CPU emulation), simply use one of the existing package to run code on GPU, or use software-implemented FPU. The latter meaning that you cannot use linear algebra and so on, at least not with just numpy/scipy, David

Re: [Numpy-discussion] Incomplete uninstall of 1.4.0 superpack

2010-04-25 Thread David Cournapeau
this is?  The dialog gave no indication.  Is an uninstall log with details generated anywhere? There should be one in C:\Python*, something like numpy-*-wininst.log Perhaps it is some shared DLL, but I have no idea which! The numpy installer does not have any shared DLL, cheers, David

Re: [Numpy-discussion] Numpy compilation error

2010-04-23 Thread David Cournapeau
for each package, and make sure you're careful about running more than one version of Python. The beauty of --user is that you don't need PYTHONPATH, and it is interpreter specific (at least if the package is correctly done). PYTHONPATH is becoming a pain with python 3.* cheers, David

Re: [Numpy-discussion] Numpy compilation error

2010-04-21 Thread David Cournapeau
files for entry points which are not removed by uninstall -u, etc...). Those are non issues for the experienced users, but a pain in my experience for beginners. The easy and reliable solution for non root install is PYTHONPATH for python 2.6 and install --user for python = 2.6. cheers, David

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

2010-04-20 Thread David Cournapeau
by python (for example at the python prompt). cheers, David ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Building DMG w/ Python 2.6 (could not access...no space left on device)

2010-04-20 Thread David Cournapeau
became so big so that numpy is now 10 Mb. David ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] scipy error undefined symbol: lsame_

2010-04-20 Thread David
not build scipy properly: you need to make sure that everything is built with exactly the same fortran compiler. One way to check this is to do ldd on the .so files which fail: if you see g2c as a dependency, it is using g77, if you see libgfortran, it is using gfortran. cheers, David

Re: [Numpy-discussion] Release candidate 3 for NumPy 1.4.1 and SciPy 0.7.2

2010-04-19 Thread David
with ifort + MSVC on windows 64 (more exactly it worked in december 2009), cheers, David ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] My GSoC Proposal to Implement a Subset of NumPy for PyPy

2010-04-18 Thread David Cournapeau
this with the C math library for math functions (cos, log, etc...) Especially for indexing and broadcasting, even if your project fails, having a pure, reference python implementation would be tremendously useful - in particular for the use in sparse arrays as mentioned by Stefan. cheers, David

[Numpy-discussion] [ANN] toydist version 0.0.2

2010-04-13 Thread David Cournapeau
for 0.0.3 is hook support - the goal is to have an API robust enough so that future toydist code will be based on hooks, as well a basic support for waf or scons-based C builds. cheers, David ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http

Re: [Numpy-discussion] rc2 for NumPy 1.4.1 and Scipy 0.7.2

2010-04-12 Thread David
if it fails linking, that's the whole point of the function. cheers, David ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] sparse.hstack with empty sparse matrices

2010-04-12 Thread David Koch
x 1 output I need to do this so I can iteratively build a matrix by adding new columns. The problem is that sparse matrix constructors don't seem expect 0 as input for a dimension. Thank you, /David ___ NumPy-Discussion mailing list NumPy-Discussion

Re: [Numpy-discussion] numpy build system questions for use in another project (fwrap)

2010-04-11 Thread David
build_ext command class that suits my purposes. We'll see how far that gets me. That's another solution. cheers, David ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] numpy build system questions for use in another project (fwrap)

2010-04-09 Thread David
the above, any ideas on how to go about doing what I'm trying to do better? Not really, that's how you are supposed to do things with distutils, David ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy

Re: [Numpy-discussion] Numpy Segmentation Fault

2010-04-09 Thread David Cournapeau
the problem. So I would prefer to see what happens with the same numpy version built against the Red Hat python (2.6.1) before looking into numpy proper. Given how simple your example is, it is quite unlikely that there is a ref count bug that nobody encountered before, David

Re: [Numpy-discussion] Numpy Segmentation Fault

2010-04-06 Thread David Cournapeau
useful (a backtrace from gdb much more), cheers, David ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Numpy Segmentation Fault

2010-04-06 Thread David Cournapeau
into numpy or python bug. Is it the problem with libc library? Very unlikely, this looks like a ref count bug, cheers, David ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Math Library

2010-04-06 Thread David Cournapeau
-specific interface to it?   What other re-organization thoughts are you having David? This is mainly it, reorganizing the code for clearer boundaries between boilerplate (python C API) and actual compuational code. Besides helping other python implementations, I think this would benefit NumPy itself

Re: [Numpy-discussion] Math Library

2010-04-05 Thread David Goldsmith
On Mon, Apr 5, 2010 at 8:40 AM, Charles R Harris charlesr.har...@gmail.comwrote: Hi All, David Cournapeau has mentioned that he would like to have a numpy math library that would supply missing functions and I'm wondering how we should organise the source code. Should we put a mathlib

Re: [Numpy-discussion] defmatrix move and unpickling of old data

2010-04-05 Thread David Reichert
David On Sat, Apr 3, 2010 at 8:13 PM, David Reichert d.p.reich...@sms.ed.ac.ukwrote: Hi, After some work I got an optimized numpy compiled on a machine where I don't have root access, but I had to use numpy 1.4.0 to make it work. Now I have the problem that I cannot seem to unpickle data I

Re: [Numpy-discussion] Math Library

2010-04-05 Thread David Goldsmith
, David Cournapeau has mentioned that he would like to have a numpy math library that would supply missing functions and I'm wondering how we should organise the source code. Should we put a mathlib directory in numpy/core/src? David already did this: numpy/core/src

Re: [Numpy-discussion] Math Library

2010-04-05 Thread David Cournapeau
to think about reorganizing the rest of numpy.core C code, the npymath library is very low hanging fruit in comparison, if only by size. David ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy

[Numpy-discussion] defmatrix move and unpickling of old data

2010-04-03 Thread David Reichert
understand defmatrix was moved from core to matrixlib? Is there some workaround I could use? I might have to move my data in between machines with either versions of numpy installed in the future as well... I already tried some renaming tricks but to no avail. Thanks David The University of Edinburgh

Re: [Numpy-discussion] Asymmetry in Chebyshev.deriv v. Chebyshev.integ

2010-04-02 Thread David Goldsmith
On Thu, Apr 1, 2010 at 6:42 PM, David Goldsmith d.l.goldsm...@gmail.comwrote: np.version.version '1.4.0' c = np.polynomial.chebyshev.Chebyshev(1) c.deriv(1.0) Chebyshev([ 0.], [-1., 1.]) c.integ(1.0) Traceback (most recent call last): File stdin, line 1, in module File string

Re: [Numpy-discussion] Asymmetry in Chebyshev.deriv v. Chebyshev.integ

2010-04-02 Thread David Goldsmith
On Fri, Apr 2, 2010 at 10:42 AM, Charles R Harris charlesr.har...@gmail.com wrote: On Thu, Apr 1, 2010 at 7:42 PM, David Goldsmith d.l.goldsm...@gmail.comwrote: np.version.version '1.4.0' c = np.polynomial.chebyshev.Chebyshev(1) c.deriv(1.0) Chebyshev([ 0.], [-1., 1.]) c.integ

Re: [Numpy-discussion] Asymmetry in Chebyshev.deriv v. Chebyshev.integ

2010-04-02 Thread David Goldsmith
On Fri, Apr 2, 2010 at 10:46 AM, Charles R Harris charlesr.har...@gmail.com wrote: On Fri, Apr 2, 2010 at 11:27 AM, David Goldsmith d.l.goldsm...@gmail.comwrote: Also: c.deriv(0) Chebyshev([ 1.], [-1., 1.]) c.integ(0) Traceback (most recent call last): File stdin, line 1

Re: [Numpy-discussion] Bug in logaddexp2.reduce

2010-04-01 Thread David Cournapeau
.dev8106. np.logaddexp2(-0.5849625007211563, -53.584962500721154) nan np.logaddexp2(-1.5849625007211563, -53.584962500721154) -1.5849625007211561 np.version.version '1.4.0' WindowsXP 32 What compiler? Mingw? yes, mingw 3.4.5. , official binaries release 1.4.0 by David sse2 Pentium M

Re: [Numpy-discussion] Bug in logaddexp2.reduce

2010-04-01 Thread David Cournapeau
that. I note that on glibc, the function called is an intrinsic for log1p (FYL2XP1) if x is sufficiently small. Clearly the optimizing compiler is inserting the DRDB (drain David's battery) opcode. :) David ___ NumPy-Discussion mailing list NumPy

Re: [Numpy-discussion] Bug in logaddexp2.reduce

2010-04-01 Thread David Cournapeau
Anne Archibald wrote: On 1 April 2010 03:15, David Cournapeau da...@silveregg.co.jp wrote: Anne Archibald wrote: Particularly given the comments in the boost source code, I'm leery of this fix; who knows what an optimizing compiler will do with it? But the current code *is* wrong

[Numpy-discussion] Asymmetry in Chebyshev.deriv v. Chebyshev.integ

2010-04-01 Thread David Goldsmith
np.version.version '1.4.0' c = np.polynomial.chebyshev.Chebyshev(1) c.deriv(1.0) Chebyshev([ 0.], [-1., 1.]) c.integ(1.0) Traceback (most recent call last): File stdin, line 1, in module File string, line 441, in integ File C:\Python26\lib\site-packages\numpy\polynomial\chebyshev.py,

Re: [Numpy-discussion] Bug in logaddexp2.reduce

2010-04-01 Thread David Cournapeau
, David ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Bug in logaddexp2.reduce

2010-03-31 Thread David Warde-Farley
it: http://mail.scipy.org/pipermail/numpy-discussion/2010-January/048067.html David ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Bug in logaddexp2.reduce

2010-03-31 Thread David Cournapeau
. Having the config.h as well as the compilation options would be most useful, to determine which functions are coming from the system, and which one are the numpy ones, cheers, David ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http

Re: [Numpy-discussion] numpy.distutils/f2py: forcing 8-bit reals

2010-03-30 Thread David Warde-Farley
the environment variable G77='gfortran -fdefault-real-8'. Simply putting it in f2py_options='-- f77flags=\'-fdefault-real-8\' --f90flags=\'-fdefault-real-8\'' doesn't seem to do the trick. I don't really understand why. David ___ NumPy-Discussion mailing

Re: [Numpy-discussion] numpy.distutils/f2py: forcing 8-bit reals

2010-03-30 Thread David Warde-Farley
On 30-Mar-10, at 2:14 PM, David Warde-Farley wrote: Hey Dag, On 30-Mar-10, at 5:02 AM, Dag Sverre Seljebotn wrote: Well, you can pass -fdefault-real-8 and then write .pyf headers where real(8) is always given explicitly. Actually I've gotten it to work this way, with real(8

Re: [Numpy-discussion] numpy.distutils/f2py: forcing 8-bit reals

2010-03-30 Thread David Warde-Farley
think this is widely considered a bad idea). The right way might involve instantiating a GnuF95Compiler object and messing with its fields or something like that. Anyway, this works for now. Thanks, David ___ NumPy-Discussion mailing list NumPy

[Numpy-discussion] Py3k: making a py3k compat header available in installed numpy for scipy

2010-03-29 Thread David Cournapeau
, or will it still significantly change (this requiring a different, more stable one) ? cheers, David ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] numpy.distutils/f2py: forcing 8-bit reals

2010-03-29 Thread David Warde-Farley
still getting stuff returned in 'real' variables as dtype=float32. Am I doing something wrong? Thanks, David ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Py3k: making a py3k compat header available in installed numpy for scipy

2010-03-29 Thread David Cournapeau
Pauli Virtanen wrote: ma, 2010-03-29 kello 19:13 +0900, David Cournapeau kirjoitti: I have worked on porting scipy to py3k, and it is mostly working. One thing which would be useful is to install something similar to npy_3kcompat.h in numpy, so that every scipy extension could share

Re: [Numpy-discussion] f2py: could not crack entity declaration

2010-03-26 Thread David Warde-Farley
On 26-Mar-10, at 8:08 AM, Kevin Jacobs wrote: On Thu, Mar 25, 2010 at 6:25 PM, David Warde-Farley d...@cs.toronto.edu wrote: I decided to give wrapping this code a try: http://morrislab.med.utoronto.ca/~dwf/GLMnet.f90 I have a working f2py wrapper located at: http

Re: [Numpy-discussion] f2py: could not crack entity declaration

2010-03-26 Thread David Warde-Farley
On 26-Mar-10, at 4:25 PM, David Warde-Farley wrote: That said, I gave that wrapper a whirl and it crashed on me... I noticed you added an 'njd' argument to the wrapper for elnet, did you modify the elnet Fortran function at all? Is it fine to have arguments in the wrapped version that don't

Re: [Numpy-discussion] Hiring: Software Developer, Scientific Applications

2010-03-25 Thread David Goldsmith
Is telecommuting an option? DG On Wed, Mar 24, 2010 at 4:44 PM, Amenity Applewhite amen...@enthought.com wrote: Enthought is hiring a Software Developer. See the description below, or on our website: http://www.enthought.com/company/sd-scientific-app.php Best, Amenity -- Amenity

Re: [Numpy-discussion] Hiring: Software Developer, Scientific Applications

2010-03-25 Thread David Goldsmith
On Thu, Mar 25, 2010 at 1:21 AM, David Goldsmith d.l.goldsm...@gmail.com wrote: Is telecommuting an option? DG Sorry, I didn't mean to send that to the list. :-( DG On Wed, Mar 24, 2010 at 4:44 PM, Amenity Applewhite amen...@enthought.com wrote: Enthought is hiring a Software Developer

Re: [Numpy-discussion] draft release guide

2010-03-25 Thread David Cournapeau
are unsolvable on win64 because of python, and that we have to use the MS compiler (for C and C++). cheers, David ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] f2py: could not crack entity declaration

2010-03-25 Thread David Warde-Farley
, David ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] draft release guide

2010-03-24 Thread David Cournapeau
don't think I will have much time to spend on making scipy and gfortran work together on win64 in the near future, cheers, David ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] draft release guide

2010-03-24 Thread David Cournapeau
. Of course, atlas on windows 64 is nowhere near buildable. cheers, David ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] StringIO test failure with Python3.1.2

2010-03-24 Thread David Cournapeau
is the new syntax for relative import). David ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] draft release guide

2010-03-24 Thread David Cournapeau
Francesc Alted wrote: A Wednesday 24 March 2010 15:38:58 David Cournapeau escrigué: Oh, it is not that easy :) First, for some reason, the mingw-w64 project does not provide 64 hosted compilers, and since pushing for mingw cross compilation support in distutils would redefine the meaning

Re: [Numpy-discussion] dtype='|S8' -- what does vertical bar mean?

2010-03-23 Thread David Warde-Farley
On 23-Mar-10, at 5:04 PM, Reckoner wrote: I don't know what the | this notation means. I can't find it in the documentation. This should be easy. Little help? A or in this position means big or little endianness. Strings don't have endianness, hence |. David

Re: [Numpy-discussion] Help!!! Docstrings overrun by markup crap.

2010-03-20 Thread David Cournapeau
) and rendered modes (pdf, html). That's the whole point of using something like rest in the first place. cheers, David ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Help!!! Docstrings overrun by markup crap.

2010-03-20 Thread David Goldsmith
On Sat, Mar 20, 2010 at 11:00 AM, Charles R Harris charlesr.har...@gmail.com wrote: Example,     Compute the qr factorization of a matrix.     Factor the matrix `a` as `qr`, where `q` is orthonormal     (:math:`dot( q_{:,i}, q_{:,j}) = \delta_{ij}`, the Kronecker delta) and     `r` is

Re: [Numpy-discussion] Help!!! Docstrings overrun by markup crap.

2010-03-20 Thread David Goldsmith
On Sat, Mar 20, 2010 at 12:41 PM, David Goldsmith d.l.goldsm...@gmail.com wrote: On Sat, Mar 20, 2010 at 11:00 AM, Charles R Harris charlesr.har...@gmail.com wrote: Example,     Compute the qr factorization of a matrix.     Factor the matrix `a` as `qr`, where `q` is orthonormal     (:math

Re: [Numpy-discussion] [OT] Starving CPUs article featured in IEEE's ComputingNow portal

2010-03-19 Thread David Warde-Farley
to transparently switch to running stuff on the GPU, I thought it was so ambitious that it would never happen. Then it did... David ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Documentation for dtypes with named fields

2010-03-16 Thread David Goldsmith
On Tue, Mar 16, 2010 at 9:45 AM, Sam Tygier sam.tyg...@hep.manchester.ac.uk wrote: On Tue, Mar 16, 2010 at 12:23 PM,  josef.pktd at gmail.com wrote: You can file a ticket, but if this is a function that is already in real use, then it would be an unpleasant break in the API done

[Numpy-discussion] Subclassing ma.MaskedArray

2010-03-16 Thread David Carmean
I understand that ma.MaskedArray is a subclass of ndarray; in addition to the requirements for subclassing the latter, what does ma.MaskedArray add to the list? I.e. what do I have to watch out for? Basically I need a version of Luke Campagnola's MetaArray (

[Numpy-discussion] Memory leak with matrices?

2010-03-09 Thread David Paul Reichert
, David -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Memory leak with matrices?

2010-03-09 Thread David Reichert
Thanks for the reply. Yes never mind the second issue, I had myself confused there. Any comments on the memory leak? On Tue, Mar 9, 2010 at 5:55 PM, josef.p...@gmail.com wrote: On Tue, Mar 9, 2010 at 12:31 PM, David Paul Reichert d.p.reich...@sms.ed.ac.uk wrote: Hi, I've got two issues

Re: [Numpy-discussion] Memory leak in signal.convolve2d? Alternative?

2010-03-09 Thread David Reichert
Hm, upgrading scipy from 0.7.0 to 0.7.1 didn't do the trick for me (still running numpy 1.3.0). I'm not sure if I feel confident enough to use developer versions, but I'll look into it. Cheers David On Tue, Mar 9, 2010 at 7:57 PM, Robert Kern robert.k...@gmail.com wrote: On Tue, Mar 9, 2010

Re: [Numpy-discussion] Memory leak in signal.convolve2d? Alternative?

2010-03-09 Thread David Reichert
with these things. Maybe other people can confirm the problem one way or another. Thanks, David On Tue, Mar 9, 2010 at 9:32 PM, josef.p...@gmail.com wrote: On Tue, Mar 9, 2010 at 4:24 PM, David Reichert d.p.reich...@sms.ed.ac.uk wrote: Hm, upgrading scipy from 0.7.0 to 0.7.1 didn't do the trick for me

Re: [Numpy-discussion] PSF GSoC 2010 (Py3K focus)

2010-03-09 Thread David Cournapeau
. linalg/lib/clusters are the first ones to port. I don't think special depends on much more than linalg/lib, but I could be wrong. David ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Is this a bug in numpy.ma.reduce?

2010-03-08 Thread David Goldsmith
On Mon, Mar 8, 2010 at 6:52 AM, Bruce Southey bsout...@gmail.com wrote: On 03/08/2010 01:30 AM, David Goldsmith wrote: On Sun, Mar 7, 2010 at 4:41 AM, Friedrich Romstedt friedrichromst...@gmail.com wrote: I would like to stress the fact that imo this is maybe not ticket and not a bug

Re: [Numpy-discussion] Is this a bug in numpy.ma.reduce?

2010-03-08 Thread David Goldsmith
On Mon, Mar 8, 2010 at 10:17 AM, David Goldsmith d.l.goldsm...@gmail.comwrote: On Mon, Mar 8, 2010 at 6:52 AM, Bruce Southey bsout...@gmail.com wrote: On 03/08/2010 01:30 AM, David Goldsmith wrote: On Sun, Mar 7, 2010 at 4:41 AM, Friedrich Romstedt friedrichromst...@gmail.com wrote: I

Re: [Numpy-discussion] Is this a bug in numpy.ma.reduce?

2010-03-08 Thread David Goldsmith
) part2plot.shape = (50, 0) Traceback (most recent call last): File D:\Home\Friedrich\Entwicklung\2010\David\aquarius.py, line 91, in ? ax.imshow(part2plot, extent = extent) File D:\Programme\Programmierung\python-2.4.1\lib\site-packages\matplotlib\ax es.py, line 5471, in imshow im.autoscale_None

Re: [Numpy-discussion] Why is the shape of a singleton array the empty tuple?

2010-03-07 Thread David Goldsmith
On Sun, Mar 7, 2010 at 4:30 AM, Friedrich Romstedt friedrichromst...@gmail.com wrote: First, to David's routine: 2010/3/7 David Goldsmith d.l.goldsm...@gmail.com: def convert_close(arg): arg = N.array(arg) if not arg.shape: arg = N.array((arg,)) if arg.size

Re: [Numpy-discussion] Is this a bug in numpy.ma.reduce?

2010-03-07 Thread David Goldsmith
On Sun, Mar 7, 2010 at 4:41 AM, Friedrich Romstedt friedrichromst...@gmail.com wrote: 2010/3/5 Pierre GM pgmdevl...@gmail.com: 'm'fraid no. I gonna have to investigate that. Please open a ticket with a self-contained example that reproduces the issue. Thx in advance... P. I would like

[Numpy-discussion] Why is the shape of a singleton array the empty tuple?

2010-03-06 Thread David Goldsmith
x = numpy.array(3) x array(3) x.shape () My question is: why? DG ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Why is the shape of a singleton array the empty tuple?

2010-03-06 Thread David Goldsmith
On Sat, Mar 6, 2010 at 9:37 PM, Ian Mallett geometr...@gmail.com wrote: x = numpy.array(3) x array(3) x.shape () y = numpy.array([3]) y array([3]) y.shape (1,) Ian Thanks, Ian. I already figured out how to make it not so, but I still want to understand the design reasoning

Re: [Numpy-discussion] Why is the shape of a singleton array the empty tuple?

2010-03-06 Thread David Goldsmith
On Sat, Mar 6, 2010 at 10:26 PM, Ian Mallett geometr...@gmail.com wrote: On Sat, Mar 6, 2010 at 9:46 PM, David Goldsmith d.l.goldsm...@gmail.comwrote: Thanks, Ian. I already figured out how to make it not so, but I still want to understand the design reasoning behind it being so

[Numpy-discussion] Is this a bug in numpy.ma.reduce?

2010-03-05 Thread David Goldsmith
Hi! Sorry for the cross-post, but my own investigation has led me to suspect that mine is actually a numpy problem, not a matplotlib problem. I'm getting the following traceback from a call to matplotlib.imshow: Traceback (most recent call last): File

Re: [Numpy-discussion] Is this a bug in numpy.ma.reduce?

2010-03-05 Thread David Goldsmith
On Fri, Mar 5, 2010 at 2:51 AM, Pierre GM pgmdevl...@gmail.com wrote: On Mar 5, 2010, at 4:38 AM, David Goldsmith wrote: Hi! Sorry for the cross-post, but my own investigation has led me to suspect that mine is actually a numpy problem, not a matplotlib problem. I'm getting the following

Re: [Numpy-discussion] Is this a bug in numpy.ma.reduce?

2010-03-05 Thread David Goldsmith
On Fri, Mar 5, 2010 at 9:22 AM, David Goldsmith d.l.goldsm...@gmail.comwrote: On Fri, Mar 5, 2010 at 2:51 AM, Pierre GM pgmdevl...@gmail.com wrote: On Mar 5, 2010, at 4:38 AM, David Goldsmith wrote: Hi! Sorry for the cross-post, but my own investigation has led me to suspect that mine

Re: [Numpy-discussion] Is this a bug in numpy.ma.reduce?

2010-03-05 Thread David Goldsmith
On Fri, Mar 5, 2010 at 9:43 AM, David Goldsmith d.l.goldsm...@gmail.comwrote: On Fri, Mar 5, 2010 at 9:22 AM, David Goldsmith d.l.goldsm...@gmail.comwrote: On Fri, Mar 5, 2010 at 2:51 AM, Pierre GM pgmdevl...@gmail.com wrote: On Mar 5, 2010, at 4:38 AM, David Goldsmith wrote: Hi! Sorry

Re: [Numpy-discussion] Building Numpy Windows Superpack

2010-03-05 Thread David Cournapeau
on windows 7 Ultimate (32 bits), and did not encounter any issue, the testsuite passing everything but a few things unrelated to our problem here. Could you put your binary somewhere so that I can look at it ? David ___ NumPy-Discussion mailing list

Re: [Numpy-discussion] Building Numpy Windows Superpack

2010-03-04 Thread David Cournapeau
two weeks about the build process. You're welcome. I hope to be able to look a bit into that issue this WE, cheers, David ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] how to work with numpy.int8 in c

2010-03-03 Thread David Cournapeau
Francesc Alted wrote: A Wednesday 03 March 2010 02:58:31 David Cournapeau escrigué: PyObject *ret; PyArray_Descr *typecode; typecode = PyArray_DescrFromType(PyArray_UINT8); ret = PyArray_Scalar(NULL, typecode, NULL); Py_DECREF(typecode); Sorry, this is wrong, this does not work on my

Re: [Numpy-discussion] Building Numpy Windows Superpack

2010-03-03 Thread David Cournapeau
the necessary dependencies.  However, the good news is that pavement.py now recognizes where the Atlas binaries David provided are located.  The output from paver bdist_wininst is located here http://patricktmarsh.com/numpy/20100302.paveout.txt. That's a bug in the pavement script - on windows 7, some

Re: [Numpy-discussion] Building Numpy Windows Superpack

2010-03-03 Thread David Cournapeau
Patrick Marsh wrote: On Wed, Mar 3, 2010 at 8:48 AM, David Cournapeau courn...@gmail.com mailto:courn...@gmail.com wrote: That's a bug in the pavement script - on windows 7, some env variables are necessary to run python correctly, which were not necessary for windows 7. I

Re: [Numpy-discussion] dtype for a single char

2010-03-03 Thread David Warde-Farley
On 3-Mar-10, at 4:56 PM, Robert Kern wrote: Other types have a sensible default determined by the platform. Yes, and the 'S0' type isn't terribly sensible, if only because of this issue: http://projects.scipy.org/numpy/ticket/1239 David

Re: [Numpy-discussion] how to work with numpy.int8 in c

2010-03-02 Thread David Warde-Farley
scalars? Basically, is there a C API for working with these numpy scalars? This bit looks relevant: http://projects.scipy.org/numpy/browser/trunk/numpy/core/src/multiarray/scalarapi.c?rev=7560#L565 David ___ NumPy-Discussion mailing list NumPy

Re: [Numpy-discussion] how to work with numpy.int8 in c

2010-03-02 Thread David Cournapeau
; This should be documented better somewhere, cheers, David ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] how to efficiently build an array of x, y, z points

2010-03-02 Thread David Goldsmith
On Tue, Mar 2, 2010 at 6:29 PM, Brennan Williams brennan.willi...@visualreservoir.com wrote: I'm reading a file which contains a grid definition. Each cell in the grid, apart from having an i,j,k index also has 8 x,y,z coordinates. I'm reading each set of coordinates into a numpy array. I

Re: [Numpy-discussion] how to efficiently build an array of x, y, z points

2010-03-02 Thread David Goldsmith
On Tue, Mar 2, 2010 at 6:59 PM, Brennan Williams brennan.willi...@visualreservoir.com wrote: David Goldsmith wrote: On Tue, Mar 2, 2010 at 6:29 PM, Brennan Williams brennan.willi...@visualreservoir.com mailto:brennan.willi...@visualreservoir.com wrote: I'm reading a file which

Re: [Numpy-discussion] Building Numpy Windows Superpack

2010-02-28 Thread David Cournapeau
Hi Patrick, On Sun, Feb 28, 2010 at 1:35 PM, Patrick Marsh patrickmars...@gmail.com wrote: Greetings, I have been trying to build the numpy superpack on windows using the binaries posted by David. Could you post *exactly* the sequence of commands you executed ? Especially at the beginning

Re: [Numpy-discussion] Building Numpy Windows Superpack

2010-02-28 Thread David Cournapeau
Patrick Marsh wrote: Hi David, There really isn't much in the way of commands that I've used - I haven't gotten that far. So far, I've downloaded your binaries and then attempted to set up my numpy site.cfg file to use your binaries. I used the following as my site.cfg [atlas

Re: [Numpy-discussion] how to work with numpy.int8 in c

2010-02-28 Thread David Cournapeau
PyArray_SimpleNew(nd, dims, NPY_INT8). If you need to create from a function which only takes PyArray_Descr, you can easily create a simple descriptor object from the enum using PyArray_DescrFromType. You can see examples in numpy/core/src/multiarray/ctors.c cheers, David

Re: [Numpy-discussion] Apply a function to all indices

2010-02-27 Thread David Warde-Farley
1.3.0 on GNU/Linux. (previous reply mysteriously didn't make it to the list...) Still happening to me in latest svn. Can you file a ticket? http://projects.scipy.org/numpy/report Thanks, David ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org

Re: [Numpy-discussion] anyone to look at #1402?

2010-02-26 Thread David Warde-Farley
determinant *and* the sign of the determinant. David ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

<    4   5   6   7   8   9   10   11   12   13   >