Re: [Numpy-discussion] State-of-the-art to use a C/C++ library from Python

2016-09-02 Thread Sebastian Haase
How do these two relate to each other !? - Sebastian On Fri, Sep 2, 2016 at 12:33 PM, Carl Kleffner wrote: > maybe https://bitbucket.org/memotype/cffiwrap or https://github.com/ > andrewleech/cfficloak helps? > > C. > > > 2016-09-02 11:16 GMT+02:00 Nathaniel Smith

Re: [Numpy-discussion] [help needed] associativity and precedence of '@'

2014-03-18 Thread Sebastian Haase
/same/ or weak (maybe that means then 'same' because it's easier to remember !?) My two cents, Sebastian Haase On Tue, Mar 18, 2014 at 7:13 AM, Eelco Hoogendoorn hoogendoorn.ee...@gmail.com wrote: Perhaps this a bit of a thread hyjack; but this discussion got me thinking about how to arrive

Re: [Numpy-discussion] Announcing Bokeh 0.2: interactive web plotting for Python

2013-11-06 Thread Sebastian Haase
Hi, you projects looks really great! I was wondering if you are making use of any pre-existing javascript plotting library like flot or flotr2 ? And if not, what are your reasons ? Thanks, Sebastian Haase On Thu, Oct 24, 2013 at 9:55 PM, Jason Grout jason-s...@creativetrax.com wrote: On 10/24

Re: [Numpy-discussion] add .H attribute?

2013-07-24 Thread Sebastian Haase
support and had so years ago)) Regards, Sebastian Haase ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] add .H attribute?

2013-07-20 Thread Sebastian Haase
thinking that numpy generally does better than matlab by being more explicit about it's memory usage... (But, I'm no mathematician and I could see it beeing much of a convenience to have .H ) My two cents, Sebastian Haase ___ NumPy-Discussion mailing list NumPy

Re: [Numpy-discussion] np.array execution path

2012-09-24 Thread Sebastian Haase
On Mon, Sep 24, 2012 at 7:09 PM, Chris Barker chris.bar...@noaa.gov wrote: On Sat, Sep 22, 2012 at 1:00 PM, Sebastian Haase seb.ha...@gmail.com wrote: Oh, is this actually documented - I knew that np.array would (by default) only create copies as need ... but I never knew it would - if all

Re: [Numpy-discussion] np.array execution path

2012-09-22 Thread Sebastian Haase
Oh, is this actually documented - I knew that np.array would (by default) only create copies as need ... but I never knew it would - if all fits - even just return the original Python-object... Thanks, Sebastian Haase On Sat, Sep 22, 2012 at 8:12 PM, Travis Oliphant tra...@continuum.io wrote

Re: [Numpy-discussion] Should arr.diagonal() return a copy or a view? (1.7 compatibility issue)

2012-05-13 Thread Sebastian Haase
+1 On Sun, May 13, 2012 at 4:28 AM, Travis Oliphant tra...@continuum.io wrote: Another approach would be to introduce a method: a.diag(copy=False) and leave a.diagonal() alone.  Then, a.diagonal() could be deprecated over 2-3 releases. -Travis On May 12, 2012, at 8:31 AM, Ralf Gommers

Re: [Numpy-discussion] The NumPy Mandelbrot code 16x slower than Fortran

2012-01-23 Thread Sebastian Haase
) and for that 13 secs would not be tolerable Well... it's not at the top of my priority list ... ;-) -Sebastian Haase ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] The NumPy Mandelbrot code 16x slower than Fortran

2012-01-22 Thread Sebastian Haase
AND NUMPY -Sebastian Haase 2012/1/22 Ondřej Čertík ondrej.cer...@gmail.com Hi, I read the Mandelbrot code using NumPy at this page: http://mentat.za.net/numpy/intro/intro.html but when I run it, it gives me integer overflows. As such, I have fixed the code, so that it doesn't overflow here

[Numpy-discussion] scipy.org still says source in some subversion repo -- should be git !?

2011-11-25 Thread Sebastian Haase
, Sebastian Haase ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] [ANN] Cython 0.15

2011-08-08 Thread Sebastian Haase
of e.g. unit8, int32, unit16, float32 and float64... (I'm using some macro-enhanced SWIG for this so far) Thanks, Sebastian Haase ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Array of size 'n' with common difference 1

2011-04-29 Thread Sebastian Haase
, note this paragraph from the mgrid docs: However, if the step length is a *complex number* (e.g. 5j), then the integer part of its magnitude is interpreted as specifying the number of points to create between the start and stop values, where the stop value *is inclusive*. -Sebastian Haase

Re: [Numpy-discussion] Shared memory ndarrays (update)

2011-04-11 Thread Sebastian Haase
? Just hoping that someone here knows Java much better than me. - Sebastian Haase ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] convert array to tuples?

2011-04-05 Thread Sebastian Haase
track record of getting patches into PIL , but did you get to the bottom of it and find how draw.line is implemented? BTW, is it drawing anti-aliased lines ? - Sebastian Haase ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org

Re: [Numpy-discussion] nearing a milestone

2011-04-01 Thread Sebastian Haase
I think he is talking about 1e6 downloads total. -S. On Fri, Apr 1, 2011 at 8:24 PM, Benjamin Root ben.r...@ou.edu wrote: Yeah, but they have been downhill since November... On Fri, Apr 1, 2011 at 1:19 PM, Darren Dale dsdal...@gmail.com wrote: Numpy is nearing a milestone:

Re: [Numpy-discussion] [NumPy-Tickets] [NumPy] #971: numpy.memmap 'offset' parameter docs are almost entirely wrong.

2011-03-24 Thread Sebastian Haase
nothing. My 2 cents, Sebastian Haase On Thu, Mar 24, 2011 at 1:58 AM, numpy-tick...@scipy.org wrote: #971: numpy.memmap 'offset' parameter docs are almost entirely wrong. ---+  Reporter:  0ion9          |       Owner:  pv

Re: [Numpy-discussion] [Numpy-svn] aada93: ENH: Add 'subok' parameter to PyArray_NewLikeArray...

2011-03-15 Thread Sebastian Haase
be ? Can you elaborate ... ? Thanks, Sebastian Haase ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] Fortran was dead ... [was Re: rewriting NumPy code in C or C++ or similar]

2011-03-14 Thread Sebastian Haase
community to F95 in general ? How many people / projects are switching. 3. Or is the move rather going like Fortran 77 - C - Python - Fortran 95 !? ;-) Thanks, Sebastian Haase ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http

Re: [Numpy-discussion] OT: performance in C extension; OpenMP, or SSE ?

2011-02-19 Thread Sebastian Haase
Thanks a lot. Very informative. I guess what you say about cache line is dirtied is related to the info I got with valgrind (see my email in this thread: L1 Data Write Miss 3636). Can one assume that the cache line is always a few mega bytes ? Thanks, Sebastian On Sat, Feb 19, 2011 at 12:40 AM,

Re: [Numpy-discussion] OT: performance in C extension; OpenMP, or SSE ?

2011-02-17 Thread Sebastian Haase
Eric, thanks for insisting on this. I noticed that, when I saw it first, just to forget about it again ... The new timings on my machine are: $: gcc -O3 -c the_lib.c -fPIC -fopenmp -ffast-math $: gcc -shared -o the_lib.so the_lib.o -lgomp -lm $: python2.5 the_python_prog.py c_threads 1 time

Re: [Numpy-discussion] OT: performance in C extension; OpenMP, or SSE ?

2011-02-16 Thread Sebastian Haase
, Sebastian Haase seb.ha...@gmail.com wrote: Hi Eat, I will surely try these routines tomorrow, but I still think that neither scipy function does the complete distance calculation of all possible pairs as done by my C code. For 2 arrays, X and Y, of nX and nY 2d coordinates respectively, I need

Re: [Numpy-discussion] OT: performance in C extension; OpenMP, or SSE ?

2011-02-16 Thread Sebastian Haase
Eric, this is amazing !! Thanks very much, I have rarely seen such a compact source example that just worked. The timings I get are: c_threads 1 time 0.00155731916428 c_threads 2 time 0.000829789638519 c_threads 3 time 0.00061688839 c_threads 4 time 0.000704760551453 c_threads 5

Re: [Numpy-discussion] OT: performance in C extension; OpenMP, or SSE ?

2011-02-16 Thread Sebastian Haase
. On Wed, Feb 16, 2011 at 1:50 PM, Sebastian Haase seb.ha...@gmail.com wrote: Eric, this is amazing !! Thanks very much, I have rarely seen such a compact source example that just worked. The timings I get are: c_threads  1  time  0.00155731916428 c_threads  2  time  0.000829789638519 c_threads  3

[Numpy-discussion] OT: performance in C extension; OpenMP, or SSE ?

2011-02-15 Thread Sebastian Haase
of code up using OpenMP !? Thanks, Sebastian Haase ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] OT: performance in C extension; OpenMP, or SSE ?

2011-02-15 Thread Sebastian Haase
keyword to dist (i.e. dist is the only pointer to the specific memory location), and then declare dist_ inside the first loop also with a restrict. Then, I would run valgrind or a PAPI profil on your code to see what causes the issue (false sharing, ...) Matthieu 2011/2/15 Sebastian Haase seb.ha

Re: [Numpy-discussion] OT: performance in C extension; OpenMP, or SSE ?

2011-02-15 Thread Sebastian Haase
have a python script, you can valgrind --optionsinmyblog python myscript.py For PAPI, you have to install several packages (perf module for kernel for instance) and a GUI to analyze the results (in Eclispe, it should be possible). Matthieu 2011/2/15 Sebastian Haase seb.ha...@gmail.com Thanks

Re: [Numpy-discussion] OT: performance in C extension; OpenMP, or SSE ?

2011-02-15 Thread Sebastian Haase
...@gmail.com wrote: Hi, On Tue, Feb 15, 2011 at 5:50 PM, Sebastian Haase seb.ha...@gmail.com wrote: Hi, I assume that someone here could maybe help me, and I'm hoping it's not too much off topic. I have 2 arrays of 2d point coordinates and would like to calculate all pairwise distances

Re: [Numpy-discussion] Is python 3 supported or not?

2011-01-14 Thread Sebastian Haase
On Fri, Jan 14, 2011 at 9:26 AM, Gael Varoquaux gael.varoqu...@normalesup.org wrote: On Thu, Jan 13, 2011 at 10:49:17AM -0800, David Cortesi wrote: As to why I'm using Python 3, it's because I'm starting a new project with no prior dependencies and want the current and future language -- which

Re: [Numpy-discussion] Numpy 1.5.1 - Mac - with Activestate Python 3

2011-01-13 Thread Sebastian Haase
2.x for a while... Can you deinstall the ActiveState 3 version ? Cheers, - Sebastian Haase ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Rolling window (moving average, moving std, and more)

2011-01-04 Thread Sebastian Haase
ndimage - right ? Any comments ? How does the performance compare ? ndimage might have more options regarding edge handling, or ? Cheers, Sebastian Haase ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo

Re: [Numpy-discussion] Rolling window (moving average, moving std, and more)

2011-01-03 Thread Sebastian Haase
, what would the peak memory usage of that operation be ? How about renaming the option `window` to `window_size` (first I was thinking of things like hamming and hanning windows...)... ? Thanks, Sebastian Haase On Sat, Jan 1, 2011 at 5:29 AM, Erik Rigtorp e...@rigtorp.com wrote: Hi, Implementing

[Numpy-discussion] Python scalar float indices into array work - but not for array indices - why ?

2010-11-17 Thread Sebastian Haase
surprised once I found out that it worked at all for Python float scalars, but would it not just be consequent to also allow float ndarrays then ? Regards, Sebastian Haase ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org

Re: [Numpy-discussion] Python scalar float indices into array work - but not for array indices - why ?

2010-11-17 Thread Sebastian Haase
On Wed, Nov 17, 2010 at 7:26 PM, Robert Kern robert.k...@gmail.com wrote: On Wed, Nov 17, 2010 at 12:20, Sebastian Haase seb.ha...@gmail.com wrote: Hi, import numpy as np a = np.arange(4) a[1.8] 1 a[ np.array(1.8) ] Traceback (most recent call last):  File input, line 1, in module

Re: [Numpy-discussion] Python scalar float indices into array work - but not for array indices - why ?

2010-11-17 Thread Sebastian Haase
On Wed, Nov 17, 2010 at 7:48 PM, Nathaniel Smith n...@pobox.com wrote: On Wed, Nov 17, 2010 at 10:32 AM, Sebastian Haase seb.ha...@gmail.com wrote: On Wed, Nov 17, 2010 at 7:26 PM, Robert Kern robert.k...@gmail.com wrote: On Wed, Nov 17, 2010 at 12:20, Sebastian Haase seb.ha...@gmail.com wrote

Re: [Numpy-discussion] Python scalar float indices into array work - but not for array indices - why ?

2010-11-17 Thread Sebastian Haase
On Wed, Nov 17, 2010 at 8:15 PM, Robert Kern robert.k...@gmail.com wrote: On Wed, Nov 17, 2010 at 13:11, Sebastian Haase seb.ha...@gmail.com wrote: On Wed, Nov 17, 2010 at 7:48 PM, Nathaniel Smith n...@pobox.com wrote: On Wed, Nov 17, 2010 at 10:32 AM, Sebastian Haase seb.ha...@gmail.com

Re: [Numpy-discussion] point line distance

2010-10-07 Thread Sebastian Haase
/Priithon/usefulGeo.py HTH, Sebastian Haase On Wed, Oct 6, 2010 at 11:13 PM, Ian Mallett geometr...@gmail.com wrote: Hi, A background in linear algebra helps.  I just came up with this method (which, because I thought of it 5 seconds ago, I don't know if it works): Line p1, p2 Point v

Re: [Numpy-discussion] can I mapping a np.darray class with a text file instead of reading the file in to mem?

2010-10-04 Thread Sebastian Haase
into a second, binary, file ? Otherwise, you might want to look into the appendable ndarray the Chris Barker wrote about on this list not too long ago. And you might want to read this post: http://old.nabble.com/Memory-usage-of-numpy-arrays-td29107053.html Cheers, - Sebastian Haase On Sat, Oct 2

[Numpy-discussion] ndarray: subclassing a subclass looses custom attribute

2010-10-01 Thread Sebastian Haase
#simple-example-adding-an-extra-attribute-to-ndarray What can I do ? Thanks, Sebastian Haase ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] ndarray: subclassing a subclass looses custom attribute

2010-10-01 Thread Sebastian Haase
On Fri, Oct 1, 2010 at 11:26 AM, Sebastian Haase seb.ha...@gmail.com wrote: Hi, I'm trying to add a 'meta' attribute to ndarray to keep track of image data filenames and resolution etc. Following  the excellent document http://docs.scipy.org/doc/numpy/user/basics.subclassing.html this worked

Re: [Numpy-discussion] ndarray: subclassing a subclass looses custom attribute

2010-10-01 Thread Sebastian Haase
On Fri, Oct 1, 2010 at 12:38 PM, Pierre GM pgmdevl...@gmail.com wrote: On Oct 1, 2010, at 11:26 AM, Sebastian Haase wrote: Hi, I'm trying to add a 'meta' attribute to ndarray to keep track of image data filenames and resolution etc. Following  the excellent document http://docs.scipy.org

Re: [Numpy-discussion] ndarray: subclassing a subclass looses custom attribute

2010-10-01 Thread Sebastian Haase
On Fri, Oct 1, 2010 at 2:20 PM, Pierre GM pgmdevl...@gmail.com wrote: On Oct 1, 2010, at 1:03 PM, Sebastian Haase wrote: However, I had done this before for some specific image-file-types: those would add there own attribute to ndarray array (e.g. arr.Mrc) Now if I call the new  ndarray_meta

Re: [Numpy-discussion] Improvements to SciPy.org Server

2010-09-30 Thread Sebastian Haase
there is a moinmoin plugin ...) Thanks for scipy, Sebastian Haase ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] ANNOUNCE: mahotas 0.5

2010-09-10 Thread Sebastian Haase
Hi Luis, thanks for the announcement. How would you compare mahotas to scipy's ndimage ? Are you using ndimage in mahotas at all ? Thanks, Sebastian Haase On Fri, Sep 10, 2010 at 4:50 AM, Luis Pedro Coelho l...@cmu.edu wrote: Hello everyone, My numpy based image processing toolbox has just

Re: [Numpy-discussion] [NumPy-Tickets] [NumPy] #1348: CHM of Numpy Reference Guide (development version) is outdated

2010-09-06 Thread Sebastian Haase
Hi, is there an URL of the weekly built CHM documentation file ? Thanks, Sebastian Haase On Sun, Sep 5, 2010 at 6:39 PM, numpy-tick...@scipy.org wrote: #1348: CHM of Numpy Reference Guide (development version) is outdated

Re: [Numpy-discussion] [NumPy-Tickets] [NumPy] #1348: CHM of Numpy Reference Guide (development version) is outdated

2010-09-06 Thread Sebastian Haase
On Mon, Sep 6, 2010 at 12:24 PM, Pauli Virtanen p...@iki.fi wrote: Mon, 06 Sep 2010 10:41:38 +0200, Sebastian Haase wrote: is there an URL of the weekly built CHM documentation file ? It's the one linked from http://docs.scipy.org/doc/ Hi Pauli, Thanks for the info. that page could say

Re: [Numpy-discussion] numpy histogram normed=True (bug / confusing behavior)

2010-08-29 Thread Sebastian Haase
a long expressing in place of `data` and the one extra keyword saves lot's of typing. -Sebastian Haase ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] questions about a complicated user-defined dtype and the ufunc API

2010-08-26 Thread Sebastian Haase
On Thu, Aug 26, 2010 at 5:09 PM, Nathaniel Smith n...@pobox.com wrote: On Mon, Aug 23, 2010 at 9:20 AM, Travis Oliphant oliph...@enthought.com wrote: On Aug 22, 2010, at 4:36 PM, Nathaniel Smith wrote: Question 2: Am I missing something, or does the ufunc API make this impossible? The

Re: [Numpy-discussion] mingw-w64 tutorial ?

2010-08-24 Thread Sebastian Haase
On Sun, Aug 22, 2010 at 10:35 AM, Robin robi...@gmail.com wrote: On Sun, Aug 22, 2010 at 8:41 AM, Sebastian Haase seb.ha...@gmail.com wrote: Do you know if that contains a C++ compiler ?  The first page before it starts the actual download has Visual C++ Compilers grayed out

Re: [Numpy-discussion] mingw-w64 tutorial ?

2010-08-24 Thread Sebastian Haase
On Wed, Aug 25, 2010 at 4:02 AM, David Cournapeau courn...@gmail.com wrote: On Wed, Aug 25, 2010 at 10:39 AM, Sebastian Haase seb.ha...@gmail.com wrote: Robin, thanks for those links. My experience is more like the one described by fuzion at http://nukeit.org/compile-python-2-7-packages

Re: [Numpy-discussion] mingw-w64 tutorial ?

2010-08-22 Thread Sebastian Haase
On Sun, Aug 22, 2010 at 3:39 AM, Sebastian Haase seb.ha...@gmail.com wrote: On Sun, Aug 22, 2010 at 12:02 AM, Christoph Gohlke cgoh...@uci.edu wrote: On 8/21/2010 2:37 PM, Sebastian Haase wrote: On Sat, Aug 21, 2010 at 11:29 PM, Christoph Gohlkecgoh...@uci.edu  wrote: On 8/21/2010 1:44 PM

Re: [Numpy-discussion] mingw-w64 tutorial ?

2010-08-22 Thread Sebastian Haase
On Sun, Aug 22, 2010 at 8:16 AM, Sebastian Haase seb.ha...@gmail.com wrote: On Sun, Aug 22, 2010 at 3:39 AM, Sebastian Haase seb.ha...@gmail.com wrote: On Sun, Aug 22, 2010 at 12:02 AM, Christoph Gohlke cgoh...@uci.edu wrote: On 8/21/2010 2:37 PM, Sebastian Haase wrote: On Sat, Aug 21, 2010

Re: [Numpy-discussion] mingw-w64 tutorial ?

2010-08-22 Thread Sebastian Haase
On Sun, Aug 22, 2010 at 8:40 AM, Sebastian Haase seb.ha...@gmail.com wrote: On Sun, Aug 22, 2010 at 8:16 AM, Sebastian Haase seb.ha...@gmail.com wrote: On Sun, Aug 22, 2010 at 3:39 AM, Sebastian Haase seb.ha...@gmail.com wrote: On Sun, Aug 22, 2010 at 12:02 AM, Christoph Gohlke cgoh...@uci.edu

Re: [Numpy-discussion] mingw-w64 tutorial ?

2010-08-22 Thread Sebastian Haase
On Sun, Aug 22, 2010 at 9:41 AM, Sebastian Haase seb.ha...@gmail.com wrote: On Sun, Aug 22, 2010 at 8:40 AM, Sebastian Haase seb.ha...@gmail.com wrote: On Sun, Aug 22, 2010 at 8:16 AM, Sebastian Haase seb.ha...@gmail.com wrote: On Sun, Aug 22, 2010 at 3:39 AM, Sebastian Haase seb.ha

Re: [Numpy-discussion] [ANN] carray: an in-memory compressed data container

2010-08-21 Thread Sebastian Haase
Hi Francesc, another exciting project ... congratulations ! Am I correct in thinking that memmapping a carray would also be a great speed advantage over memmapped ndarrays ? Let's say I have a 2Gbyte ndarray memmaped over a NFS network connection, should the speed increase simply scale with the

[Numpy-discussion] mingw-w64 tutorial ?

2010-08-21 Thread Sebastian Haase
cygwin -- but that would only produce 32bit modules and should be unusable. So, the question is if someone has or knows of some tutorial about how to go about this - step by step. This info could maybe even go the scipy wiki Thanks, Sebastian Haase

Re: [Numpy-discussion] mingw-w64 tutorial ?

2010-08-21 Thread Sebastian Haase
On Sat, Aug 21, 2010 at 11:29 PM, Christoph Gohlke cgoh...@uci.edu wrote: On 8/21/2010 1:44 PM, Sebastian Haase wrote: Hi, this is somewhat OT for this list, but since I know that David and many others here have lot's of experience compiling C extensions I thought I could just ask

Re: [Numpy-discussion] mingw-w64 tutorial ?

2010-08-21 Thread Sebastian Haase
On Sun, Aug 22, 2010 at 12:02 AM, Christoph Gohlke cgoh...@uci.edu wrote: On 8/21/2010 2:37 PM, Sebastian Haase wrote: On Sat, Aug 21, 2010 at 11:29 PM, Christoph Gohlkecgoh...@uci.edu  wrote: On 8/21/2010 1:44 PM, Sebastian Haase wrote: Hi, this is somewhat OT for this list, but since I

Re: [Numpy-discussion] ANN: Numexpr 1.4 released

2010-08-01 Thread Sebastian Haase
code these days) ... ? Thanks, Sebastian Haase ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Problem with importing numpy in Ubuntu

2010-07-28 Thread Sebastian Haase
to clean up all the python version that I have. I tried the reinstall option. It does not work. I cannot remove the python. It will wipe out my operating system. Any suggestion? On Tue, Jul 27, 2010 at 10:42 AM, Sebastian Haase seb.ha...@gmail.com wrote: The origin

Re: [Numpy-discussion] ceil returns real ?

2010-07-28 Thread Sebastian Haase
, Hi Mark, I don't know the answer, but Python 2.x has similar behavior for the built-in round(): round(2.7) returns 3.0 (float!) I think I read that Python 3.2 will change this to round(2.7) returning 3 (int!) - Sebastian Haase ___ NumPy-Discussion

Re: [Numpy-discussion] Problem with importing numpy in Ubuntu

2010-07-27 Thread Sebastian Haase
default to 4ByteUnicode. ( check sys.maxunicode to see what you have; I get 1114111, i.e 65535 , so I have 4 byte (on Debian) ) So, most likely you have some hand compiled Python somewhere - Sebastian Haase On Tue, Jul 27, 2010 at 4:33 PM, Matthieu Brucher matthieu.bruc

Re: [Numpy-discussion] numpy installation question (IronPython)

2010-07-13 Thread Sebastian Haase
?  The multiarray module could not be found using IronPython. Hi William, Why do you think that numpy works in IronPython ? I thought most Python modules work only with standard (C) Python Numpy depends heavily on C implementations for most of its functionality. Regards, Sebastian Haase

Re: [Numpy-discussion] debian benchmarks

2010-07-04 Thread Sebastian Haase
... but what kind of code / problem are they actually testing here ? Thanks, Sebastian Haase ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] reduce array by computing min/max every n samples

2010-06-21 Thread Sebastian Haase
/idl/astrolib/misc/minmax.html) My most favorite function I wrote many years ago using SWIG, I call mmms(arr) which returns a min,max,mean,std.dev tuple. (Of course it only works for contiguous C arrays, but it does support most scalar dtypes via SWIG-templating) Just my 2 cents. - Sebastian

Re: [Numpy-discussion] [ANN] NLopt, a nonlinear optimization library

2010-06-17 Thread Sebastian Haase
, less manual and still easy-to-use way ? Thanks, Sebastian Haase On Thu, Jun 17, 2010 at 7:26 AM, Steven G. Johnson stev...@alum.mit.edu wrote: The NLopt library, available from     http://ab-initio.mit.edu/nlopt provides a common interface for a large number of algorithms for both global

Re: [Numpy-discussion] Is there really a moderator that reviews posts?

2010-06-08 Thread Sebastian Haase
I don't want to complain But what is wrong with a limit of 40kB ? There are enough places where one could upload larger files for everyone interested... My 2 cents, Sebastian Haase PS: what is the limit now set to ? On Mon, Jun 7, 2010 at 11:24 PM, Vincent Davis vinc...@vincentdavis.net

[Numpy-discussion] typo in docs

2010-06-08 Thread Sebastian Haase
are named 'f0', 'f2', ..., 'fN-1' Is there a way for me to directly fix this kind of bug ? - -Sebastian Haase ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] typo in docs

2010-06-08 Thread Sebastian Haase
filed two bug reports sorry. On Tue, Jun 8, 2010 at 9:46 AM, Sebastian Haase seb.ha...@gmail.com wrote: Hi, http://docs.scipy.org/doc/numpy/reference/arrays.dtypes.html#specifying-and-constructing-data-types says f2 instead of f1 Numarray introduced a short-hand notation for specifying

[Numpy-discussion] np.append converts recarray to ndarray -- np.insert works

2010-06-08 Thread Sebastian Haase
Hi, Is there a reason that np.append converts recarray to ndarray while np.insert keeps recarray: type(a) class 'numpy.core.records.recarray' type(N.append(a,a)) type 'numpy.ndarray' type(N.insert(a,-1, a)) class 'numpy.core.records.recarray' Thanks, Sebastian Haase

Re: [Numpy-discussion] Is there really a moderator that reviews posts?

2010-06-08 Thread Sebastian Haase
On Tue, Jun 8, 2010 at 5:23 PM, David Goldsmith d.l.goldsm...@gmail.com wrote: On Tue, Jun 8, 2010 at 12:10 AM, Sebastian Haase seb.ha...@gmail.com wrote: I don't want to complain But what is wrong with a limit of 40kB ? There are enough places where one could upload larger files

Re: [Numpy-discussion] Greater common divisor

2010-06-08 Thread Sebastian Haase
= b, a%b 558 return a or this: http://www.geekpedia.com/code120_Find-The-Greatest-Common-Divisor.html def euclid(numA, numB): while numB != 0: numRem = numA % numB numA = numB numB = numRem return numA HTH, Sebastian Haase On Mon, Jun 7, 2010 at 12:19 PM

Re: [Numpy-discussion] Problem in swig

2010-05-20 Thread Sebastian Haase
Hi, I don't know exactly, but try replacing the one line %apply (float* INPLACE_ARRAY1, int DIM1) {(float *a, int na), (float *b, int nb)}; with two lines: %apply (float* INPLACE_ARRAY1, int DIM1) {(float *a, int na)}; %apply (float* INPLACE_ARRAY1, int DIM1) {(float *b, int nb)}; Don't know

Re: [Numpy-discussion] ndimage.label - howto force SWIG to use int32 - even on 64bit Linux ?

2010-05-03 Thread Sebastian Haase
objects. I have that restricted to 3D contiguous data. scikits.image might already have had this function implementer in a general way ;-) Regards, Sebastian 2010/5/1 Stéfan van der Walt ste...@sun.ac.za: Hi Sebastian On 27 April 2010 10:27, Sebastian Haase seb.ha...@gmail.com wrote: Hi, I

Re: [Numpy-discussion] ndimage.label - howto force SWIG to use int32 - even on 64bit Linux ?

2010-04-29 Thread Sebastian Haase
directives correctly:   %apply (npy_intp* IN_ARRAY1, int DIM1) {(npy_intp* seq, int n)};   etc SWIG should be able to figure it out from there. On Apr 28, 2010, at 12:58 PM, Charles R Harris wrote: On Tue, Apr 27, 2010 at 2:27 AM, Sebastian Haase seb.ha...@gmail.com wrote: Hi, I wanted

[Numpy-discussion] ndimage.label - howto force SWIG to use int32 - even on 64bit Linux ?

2010-04-28 Thread Sebastian Haase
and NPY_INT. But those are sometimes 32 sometimes 64 bit, depending on the system. Any ideas ... ? Thanks, Sebastian Haase ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] ndimage.label - howto force SWIG to use int32 - even on 64bit Linux ?

2010-04-28 Thread Sebastian Haase
the typemaps of numpy.i I can choose between NPY_LONG and NPY_INT. But those are sometimes 32 sometimes 64 bit, depending on the system. Any ideas ... ? Thanks, Sebastian Haase ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http

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

2010-04-21 Thread Sebastian Haase
On Tue, Apr 20, 2010 at 2:23 AM, Ralf Gommers ralf.gomm...@googlemail.com wrote: On Mon, Apr 19, 2010 at 9:19 PM, Ralf Gommers ralf.gomm...@googlemail.com wrote: On Mon, Apr 19, 2010 at 4:21 PM, Ralf Gommers ralf.gomm...@googlemail.com wrote: On Mon, Apr 19, 2010 at 3:35 PM, Sebastian

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

2010-04-19 Thread Sebastian Haase
Hi, Congratulations. I might be unnecessarily dense - but what SciPy am I supposed to use with the new numpy 1.4.1 for Python 2.5? I'm surprised that there are no SciPy 0.7.2 binaries for Python 2.5 - is that technically not possible ? Thanks, Sebastian Haase On Mon, Apr 19, 2010 at 6:25 AM

Re: [Numpy-discussion] use of %extend

2010-04-15 Thread Sebastian Haase
did you mean to send this to the SWIG list !? -S. On Thu, Apr 15, 2010 at 11:53 AM, Michel Dupront michel.dupr...@hotmail.fr wrote: Hello, With the following example, given in the documentation: struct Vector {    double x,y,z; }; %extend Vector {     Vector __add__(Vector *other) {    

Re: [Numpy-discussion] INSTALLATION ON CYGWIN

2010-04-11 Thread Sebastian Haase
somthing that is automatically optimized for your CPU. (You are using 32 bit XP or Vista or 7, right ?) Regards, Sebastian Haase On Sun, Apr 11, 2010 at 12:44 AM, AKI akikumar1...@gmail.com wrote: There is too much out there which is making me confuse, I want to install Numpy and Scipy on cygwin

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

2010-04-11 Thread Sebastian Haase
Hi Ralf, congratulation to the new RC. Just for the record, where did you announce RC1 ? Only on numpy-dev ? On Sun, Apr 11, 2010 at 11:09 AM, Ralf Gommers ralf.gomm...@googlemail.com wrote: snip For SciPy there will be no 2.5 binaries - because 0.7.x is built against NumPy 1.2 Could you

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

2010-03-20 Thread Sebastian Haase
On Sat, Mar 20, 2010 at 8:22 PM, Anne Archibald peridot.face...@gmail.com wrote: On 20 March 2010 14:56, Dag Sverre Seljebotn da...@student.matnat.uio.no wrote: Pauli Virtanen wrote: Anne Archibald wrote: I'm not knocking numpy; it does (almost) the best it can. (I'm not sure of the

Re: [Numpy-discussion] bug in ndarray.resize?

2010-03-18 Thread Sebastian Haase
(at first !?) keep opposite defaults to not change the current behavior. But this way it would be most visible and clear what is going on. Regards, Sebastian Haase ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman

Re: [Numpy-discussion] numpy 2.0, what else to do?

2010-02-15 Thread Sebastian Haase
On Mon, Feb 15, 2010 at 11:17 AM, Francesc Alted fal...@pytables.org wrote: A Sunday 14 February 2010 13:40:17 Stéfan van der Walt escrigué: On 14 February 2010 01:23, David Cournapeau courn...@gmail.com wrote: I think that there should be absolutely no change whatsoever, for two reasons: -

Re: [Numpy-discussion] Removing datetime support for 1.4.x series ?

2010-02-12 Thread Sebastian Haase
: http://www.mail-archive.com/numpy-discussion@scipy.org/msg11898.html ) Oh, and is there a proposed name for that attribute (on the Python side) ? Regards, Sebastian Haase ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org

Re: [Numpy-discussion] scipy-tickets restarted emailing on jan17 - how about numpy-tickets ?

2010-02-08 Thread Sebastian Haase
Hi, I solved the problem: GMail apparently filtered all numpy-ticket and numpy-svn mails into spam. In case someone benefits from thins info. -Sebastian On Mon, Jan 25, 2010 at 3:54 PM, Ryan May rma...@gmail.com wrote: On Mon, Jan 25, 2010 at 2:55 AM, Sebastian Haase seb.ha...@gmail.com

Re: [Numpy-discussion] Compact way of performing array math with specified result type?

2010-02-08 Thread Sebastian Haase
if this has gotten better documented by now !? (and where ?) -Sebastian Haase ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Unable to install Numpy

2010-02-07 Thread Sebastian Haase
provide 32 bits installers for now on windows2, Hello, Regarding this post - is there a non official numpy package for 64bit windows? And how about SciPy ? I guess it all related to problems coming from the 64bit support of cygwin (rather the lack thereof) - right ? Cheers, Sebastian Haase

[Numpy-discussion] scipy-tickets restarted emailing on jan17 - how about numpy-tickets ?

2010-01-25 Thread Sebastian Haase
Hi, long time ago I had subscript to get both scipy-tickets and numpy-tickets emailed. Now scipy-tickets apparently started emailing again on 17th of Januar. Will numpy-tickets also come back by itself - or should I resubscribe? Regards, Sebastian Haase

[Numpy-discussion] broken links on http://numpy.scipy.org/

2010-01-15 Thread Sebastian Haase
Hi, Apparently this very nice looking icons (4 of the 5 icons or so) at http://numpy.scipy.org/ are broken links. Regards, Sebastian Haase ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy

Re: [Numpy-discussion] Numpy 1.4.0 rc1 released

2009-12-01 Thread Sebastian Haase
On Tue, Dec 1, 2009 at 9:17 AM, Virgil Stokes v...@it.uu.se wrote: David Cournapeau wrote: Hi, The first release candidate for 1.4.0 has been released. The sources, as well as mac and windows installers may be found here: https://sourceforge.net/projects/numpy/files/ The main improvements

Re: [Numpy-discussion] Strange inversion in shape with some slices

2009-11-17 Thread Sebastian Haase
deprecating this kind of index mixing !? Regards, Sebastian Haase ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] does an ndarray have a hook for a dictionary attribute ?

2009-11-12 Thread Sebastian Haase
? (For the latter it would be very helpful to get a hint on how to make such a minimal ndarray-subclass . I remember some issues involving some special __new__ methods, that I don't entirely remember by heard..) Thanks, Sebastian Haase ___ NumPy-Discussion mailing

Re: [Numpy-discussion] does an ndarray have a hook for a dictionary attribute ?

2009-11-12 Thread Sebastian Haase
On Thu, Nov 12, 2009 at 10:38 AM, Sebastian Haase seb.ha...@gmail.com wrote: Hi, I hope my subject line is not entirely incomprehensible: I remember there was a discussion (some time ago) that every ndarray instance should get an extra dictionary (or just a hook for it, to minimize

[Numpy-discussion] unittest for np.random.poisson with lambda=0

2009-11-11 Thread Sebastian Haase
added that does something like this: a=N.random.poisson(0, 1) N.alltrue(a==0) True Regards, Sebastian Haase ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] unittest for np.random.poisson with lambda=0

2009-11-11 Thread Sebastian Haase
-runtime/browser/trunk/Numeric-24.2/changes.txt?rev=42 ) I still haven't learned how to write unittests (sorry) - Sebastian Haase On Wed, Nov 11, 2009 at 8:53 PM, Robert Kern robert.k...@gmail.com wrote: On Wed, Nov 11, 2009 at 02:30, Sebastian Haase seb.ha...@gmail.com wrote: Hi, maybe

[Numpy-discussion] type 'numpy.int64' unhashable

2009-10-30 Thread Sebastian Haase
like to ask for suggestions: What should I do if the number 2636 becomes unhashable ? Thanks, Sebastian Haase ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] type 'numpy.int64' unhashable

2009-10-30 Thread Sebastian Haase
Cournapeau wrote: On Fri, Oct 30, 2009 at 8:04 PM, Sebastian Haase seb.ha...@gmail.com wrote: I understand where this error comes from, however what I was trying to do seems to intuitive that I would like to ask for suggestions: What should I do if the number 2636 becomes unhashable ? In your

Re: [Numpy-discussion] numpy.asum ?

2009-10-05 Thread Sebastian Haase
Thanks for the reply. I thought one reason for amax was that from numpy import * would not not import max but only amax. How about sum ? Does from numpy import * overwrite the builtin sum ? not to mention the symmetry / consistency argument for having asum ? More comments ?? --Sebastian Haase

  1   2   3   >