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 : > >> On Fri, Sep 2, 2016 at

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

2014-03-18 Thread Sebastian Haase
n on tight/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 wrote: > > > Perhaps this a bit of a thread hyjack; but this discussion got me thinking &

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 wrote: > On 10/24/13 1:42 PM, Peter W

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

2013-07-24 Thread Sebastian Haase
nd we would be talking about far-future directions instead of "a single letter addition", which abvious already has big enough 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
strong > arguments against and then > several more votes in favor. Are there other precedents where an attribute would involve data-copying ? I'm thinking that numpy generally does better than matlab by being more explicit about it's memory usage... (But, I'm no mathematici

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

2012-09-24 Thread Sebastian Haase
On Mon, Sep 24, 2012 at 7:09 PM, Chris Barker wrote: > On Sat, Sep 22, 2012 at 1:00 PM, Sebastian Haase 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 fits >

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 wrote: > Check to see

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 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 wrote: >

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

2012-01-23 Thread Sebastian Haase
e, yes, coding the bottlenecks in > Fortran matters to me. But 13 seconds versus 1 second? I find that > hardly interesting. > > Sturla I would think that interactive zooming would be quite nice ("illuminating") and for that 13 secs would not be tolerable Well... it

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 > > 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 d

[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
d be one of my top ranked favorites, since I like writing simple algorithms (like computing certain statistics over a numpy array), and have this support all 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
om 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 ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

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

2011-04-11 Thread Sebastian Haase
ava applications and numpy ? 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
aybe numpy should have a ndarray.totuple() method. > > -Chris > How about fixing PIL... I know that there is not a good 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 ? - Sebastia

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 wrote: > Yeah, but they have been downhill since November... > > On Fri, Apr 1, 2011 at 1:19 PM, Darren Dale wrote: >> >> Numpy is nearing a milestone: >> >> http://sourceforge.net/projects/numpy/

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

2011-03-24 Thread Sebastian Haase
etter than nothing. My 2 cents, Sebastian Haase On Thu, Mar 24, 2011 at 1:58 AM, wrote: > #971: numpy.memmap 'offset' parameter docs are almost entirely wrong. > ---+ >  Reporter:  0ion9          |       O

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

2011-03-15 Thread Sebastian Haase
quot;normal" ndarrays just taking shape and dtype from the given array. So what should the interpretation of "subok" 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
done the move from C/C++ to Fortran -- I thought Fortran was dead ... !? ;-) What am I missing here ? Apparently (from what I was able to read-up so far) there is a BIG difference between FORTRAN 77 and F95. But isn't gcc or gfortran still only supporting F77 ? How abo

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
Hi, More surprises: shaase@iris:~/code/SwiggedDistOMP: gcc -O3 -c the_lib.c -fPIC -fopenmp -ffast-math shaase@iris:~/code/SwiggedDistOMP: gcc -shared -o the_lib.so the_lib.o -lgomp -lm shaase@iris:~/code/SwiggedDistOMP: priithon the_python_prog.py c_threads 0 time 0.000437839031219# this is n

[Numpy-discussion] why is www.numpy.org an HTML frame for numpy.scipy.org ??

2011-02-17 Thread Sebastian Haase
real page is at http://numpy.scipy.org. I would vote, removing that frame and redirect www.numpy.org to numpy.scipy.org Is there any other use of numpy.org which I'm overlooking ? Cheers, -- Sebastian Haase ' ___ NumPy-Discussion mailing l

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

2011-02-17 Thread Sebastian Haase
On Thu, Feb 17, 2011 at 10:29 AM, Matthieu Brucher wrote: > >> Do you think, one could get even better ? >> And, where does the 7% slow-down (for single thread) come from ? >> Is it possible to have the OpenMP option in a code, without _any_ >> penalty for 1 core machines ? > > There will always b

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 0.000

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

2011-02-16 Thread Sebastian Haase
Thanks, Sebastian. On Wed, Feb 16, 2011 at 1:50 PM, Sebastian Haase 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  t

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 t

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

2011-02-16 Thread Sebastian Haase
; 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 >> >> Thanks Matthieu, >> using __restrict__ with g++ did not chan

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

2011-02-16 Thread Sebastian Haase
f 3: 1.18 ms per loop > > > On Tue, Feb 15, 2011 at 4:42 PM, Sebastian Haase > 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 a

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

2011-02-15 Thread Sebastian Haase
gt; Hi, > > On Tue, Feb 15, 2011 at 5:50 PM, Sebastian Haase > 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

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

2011-02-15 Thread Sebastian Haase
if you 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 >> 20

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

2011-02-15 Thread Sebastian Haase
rd 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

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

2011-02-15 Thread Sebastian Haase
ossible to speed this kind 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] Is python 3 supported or not?

2011-01-14 Thread Sebastian Haase
On Fri, Jan 14, 2011 at 9:26 AM, Gael Varoquaux 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 is now TWO FRAKKIN' YE

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

2011-01-13 Thread Sebastian Haase
e you are trying > to install from, and where you downloaded it from. > > -Chris > Hi David, the simple answer you might be looking for is: it's easier to stay with Python 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
___ BTW, some of these operations can be done using scipy's ndimage - right ? Any comments ? How does the performance compare ? ndimage might have more options regarding edge handling, or ? Cheers, Sebastian Haase ___ NumPy-Discussion

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

2011-01-03 Thread Sebastian Haase
ow size 11, 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 wrote: > Hi, > >

[Numpy-discussion] np.lookfor -- still supported / working ?

2010-12-11 Thread Sebastian Haase
quot;C:\cygwin\home\haase\Priithon_25_win\numpy\lib\utils.py", line 729, in _lookfor_generate_cache doc = inspect.getdoc(item) File "C:\cygwin\home\haase\Priithon_25_win\Python25\lib\inspect.py", line 313, in getdoc doc = object.__doc__ NameError: Unknown C global variable >&g

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 wrote: > On Wed, Nov 17, 2010 at 13:11, Sebastian Haase wrote: >> On Wed, Nov 17, 2010 at 7:48 PM, Nathaniel Smith wrote: >>> On Wed, Nov 17, 2010 at 10:32 AM, Sebastian Haase >>> wrote: >>>> On Wed, Nov

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 wrote: > On Wed, Nov 17, 2010 at 10:32 AM, Sebastian Haase wrote: >> On Wed, Nov 17, 2010 at 7:26 PM, Robert Kern wrote: >>> On Wed, Nov 17, 2010 at 12:20, Sebastian Haase wrote: >>>> Why does numpy not accept fl

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 wrote: > On Wed, Nov 17, 2010 at 12:20, Sebastian Haase wrote: >> Hi, >>>>> import numpy as np >>>>> a = np.arange(4) >>>>> a[1.8] >> 1 >>>>> a[ np.array(1.8) ] >> Trace

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

2010-11-17 Thread Sebastian Haase
pt float arrays as indices ? I was very happy and quite 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 mailin

Re: [Numpy-discussion] point line distance

2010-10-07 Thread Sebastian Haase
egmentEnds=False):: ... https://priithon.googlecode.com/hg/Priithon/usefulGeo.py HTH, Sebastian Haase On Wed, Oct 6, 2010 at 11:13 PM, Ian Mallett 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'

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
-line" 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, - Seba

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 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) >>&g

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 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

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 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

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

2010-10-01 Thread Sebastian Haase
ubclassing.html#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] Improvements to SciPy.org Server

2010-09-30 Thread Sebastian Haase
ously this is a general problem of wiki sites that exceed a certain life time ;-) (maybe 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 wrote: > Hello everyone, > > My numpy based image processing toolbox

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 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

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, wrote: > #1348: CHM of Numpy Reference Guide (development version) is outdated > +--- >

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

2010-08-29 Thread Sebastian Haase
e very > clear. A user sees all options and there is little chance of a > misunderstanding. Of course, a sentence like "If you want frequency > normalization, use histogram(data, normalized=False)/sum(data)" would > also make things clear, without adding the frequency option. > I am in favor of adding an option for the density mode (not for this release I guess). I often have 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 wrote: > On Mon, Aug 23, 2010 at 9:20 AM, Travis Oliphant > 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 problem is that a "PyUFuncGeneric

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

2010-08-24 Thread Sebastian Haase
On Wed, Aug 25, 2010 at 4:02 AM, David Cournapeau wrote: > On Wed, Aug 25, 2010 at 10:39 AM, Sebastian Haase 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-w

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

2010-08-24 Thread Sebastian Haase
On Sun, Aug 22, 2010 at 10:35 AM, Robin wrote: > On Sun, Aug 22, 2010 at 8:41 AM, Sebastian Haase wrote: >>>>> Do you know if that contains a C++ compiler ?  The first page before >>>>> it starts the actual download has "Visual C++ Compilers" gra

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

2010-08-22 Thread Sebastian Haase
On Sun, Aug 22, 2010 at 9:41 AM, Sebastian Haase wrote: > On Sun, Aug 22, 2010 at 8:40 AM, Sebastian Haase wrote: >> On Sun, Aug 22, 2010 at 8:16 AM, Sebastian Haase wrote: >>> On Sun, Aug 22, 2010 at 3:39 AM, Sebastian Haase >>> wrote: >>>> On Sun, Aug

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

2010-08-22 Thread Sebastian Haase
On Sun, Aug 22, 2010 at 8:40 AM, Sebastian Haase wrote: > On Sun, Aug 22, 2010 at 8:16 AM, Sebastian Haase wrote: >> On Sun, Aug 22, 2010 at 3:39 AM, Sebastian Haase wrote: >>> On Sun, Aug 22, 2010 at 12:02 AM, Christoph Gohlke wrote: >>>> >>>> >&g

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

2010-08-21 Thread Sebastian Haase
On Sun, Aug 22, 2010 at 8:16 AM, Sebastian Haase wrote: > On Sun, Aug 22, 2010 at 3:39 AM, Sebastian Haase wrote: >> On Sun, Aug 22, 2010 at 12:02 AM, Christoph Gohlke wrote: >>> >>> >>> On 8/21/2010 2:37 PM, Sebastian Haase wrote: >>>> On Sat, A

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

2010-08-21 Thread Sebastian Haase
On Sun, Aug 22, 2010 at 3:39 AM, Sebastian Haase wrote: > On Sun, Aug 22, 2010 at 12:02 AM, Christoph Gohlke wrote: >> >> >> On 8/21/2010 2:37 PM, Sebastian Haase wrote: >>> On Sat, Aug 21, 2010 at 11:29 PM, Christoph Gohlke  wrote: >>>> >>>

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

2010-08-21 Thread Sebastian Haase
On Sun, Aug 22, 2010 at 12:02 AM, Christoph Gohlke wrote: > > > On 8/21/2010 2:37 PM, Sebastian Haase wrote: >> On Sat, Aug 21, 2010 at 11:29 PM, Christoph Gohlke  wrote: >>> >>> >>> On 8/21/2010 1:44 PM, Sebastian Haase wrote: >>>> Hi, &g

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

2010-08-21 Thread Sebastian Haase
On Sat, Aug 21, 2010 at 11:29 PM, Christoph Gohlke 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 ex

[Numpy-discussion] mingw-w64 tutorial ?

2010-08-21 Thread Sebastian Haase
using 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

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 c

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

2010-08-01 Thread Sebastian Haase
ives at google 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] ceil returns real ?

2010-07-28 Thread Sebastian Haase
gt; > Numpy version 1.3.0. > > Thanks, > 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 __

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

2010-07-28 Thread Sebastian Haase
gt; >>>> sys.maxunicode >>> > 65535 >>> > >>> > I might have some "hand complied" python. Once I compiled Biopython >>> > long >>> > ago. >>> > >>> > The problem is I do not know how to cle

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 Br

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

2010-07-13 Thread Sebastian Haase
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 functi

Re: [Numpy-discussion] [Numpy-svn] r8413 - trunk/numpy/lib - Author: oliphant - Add percentile function.

2010-07-08 Thread Sebastian Haase
isn't this related to http://projects.scipy.org/numpy/ticket/626 percentile() and clamp() which was set to invalid -Sebastian On Sun, May 16, 2010 at 12:11 AM, wrote: > Author: oliphant > Date: 2010-05-15 17:11:10 -0500 (Sat, 15 May 2010) > New Revision: 8413 > > Modified: >   trunk/numpy/lib

Re: [Numpy-discussion] Memory usage of numpy-arrays

2010-07-08 Thread Sebastian Haase
g as float32 binary. So the problem would "only" be the loading in - rather, going through - all lines of text from start to end without choking. This might be better done "by hand", i.e. in standard (non numpy) python: nums = [] for line in file("myTextFile.txt"):

Re: [Numpy-discussion] debian benchmarks

2010-07-04 Thread Sebastian Haase
benchmark? > > Sturla Hi Sturla, what is this even about ... ? Do you have some references ? It does indeed sound interesting ... 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
d be useful. For what it's worth, IDL also has a > function > called minmax() that does this (e.g. > http://astro.uni-tuebingen.de/software/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

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

2010-06-17 Thread Sebastian Haase
Hi Steven, this sounds like the library I was looking for. Would you mind reading my post [SciPy-User] Global Curve Fitting of 2 functions to 2 sets of data-curves http://mail.scipy.org/pipermail/scipy-user/2010-June/025674.html ? I got many interesting answers, where apparently the agreement wa

Re: [Numpy-discussion] typo in docs

2010-06-09 Thread Sebastian Haase
On Wed, Jun 9, 2010 at 8:19 AM, Pierre GM wrote: > On Jun 8, 2010, at 4:37 AM, Sebastian Haase wrote: >> another note: >> http://docs.scipy.org/doc/numpy/reference/arrays.indexing.html#arrays-indexing-rec >> should not say "record array" - because recarray a &qu

Re: [Numpy-discussion] Greater common divisor

2010-06-08 Thread Sebastian Haase
quot; 556 while b: 557 a, b = 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 O

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 wrote: > On Tue, Jun 8, 2010 at 12:10 AM, Sebastian Haase > 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

[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) >>> type(N.append(a,a)) >>> type(N.insert(a,-1, a)) Thanks, Sebastian Haase ___ NumPy-Discussion mailing list

Re: [Numpy-discussion] typo in docs

2010-06-08 Thread Sebastian Haase
PS: I guess I should have filed two bug reports sorry. On Tue, Jun 8, 2010 at 9:46 AM, Sebastian Haase wrote: > Hi, > > http://docs.scipy.org/doc/numpy/reference/arrays.dtypes.html#specifying-and-constructing-data-types > > says "f2" instead of "f1" > >

[Numpy-discussion] typo in docs

2010-06-08 Thread Sebastian Haase
data-type fields are named 'f0', 'f2', ..., 'f' 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] 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 wrote: > On Mo

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 abo

Re: [Numpy-discussion] Wrong Eigenvalue (Approximation?)

2010-05-17 Thread Sebastian Haase
ery nice (i.e. pleasing to the eye...) - Sebastian Haase ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

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 : > Hi Sebastian > > On 27 April 2010 10:27, Sebastian Haase wrote: >> Hi, >> I wanted

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

2010-04-29 Thread Sebastian Haase
apply > 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, Sebas

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

2010-04-28 Thread Sebastian Haase
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

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

2010-04-28 Thread Sebastian Haase
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

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 wrote: > > > On Mon, Apr 19, 2010 at 9:19 PM, Ralf Gommers > wrote: >> >> >> On Mon, Apr 19, 2010 at 4:21 PM, Ralf Gommers >> wrote: >>> >>> >>> On Mon, Apr 19, 2010 at 3:35 PM, Sebastia

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:

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 wrote: > Hello, > > With the following example, given in the documentation: > > struct Vector { >    double x,y,z; > }; > %extend Vector { >     Vector __add__(Vector *other) { > Vector v;

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 wrote: > For SciPy there will be no 2.5 binaries - > because 0.7.x is built against NumPy 1.2 Could you elaborate on this ? I thought the n

Re: [Numpy-discussion] INSTALLATION ON CYGWIN

2010-04-11 Thread Sebastian Haase
ot; to get 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 wrote: > There is too much out there which is making me confuse, I want to install > Numpy and Scipy on cygwin.

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 wrote: > On 20 March 2010 14:56, Dag Sverre Seljebotn > 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 optimality of the order in which ufuncs are ex

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

2010-03-18 Thread Sebastian Haase
eel about unifying the function vs. the method behavior ? One could add an addition option like `repeat` or `fillZero`. One could (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 _

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 wrote: > A Sunday 14 February 2010 13:40:17 Stéfan van der Walt escrigué: >> On 14 February 2010 01:23, David Cournapeau wrote: >> > I think that there should be absolutely no change whatsoever, for two >> > reasons: - the release is in a few weeks

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

2010-02-12 Thread Sebastian Haase
as asking about recently. (I'm mostly referring to an old thread of Aug 2008: 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 ___

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

2010-02-08 Thread Sebastian Haase
t; > Thus, > > numpy.divide(seq1, seq1, sig=('d',)*3) > > will do what you want. > > -Travis > Hi, going through my very old emails - I was wondering 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] 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 wrote: > On Mon, Jan 25, 2010 at 2:55 AM, Sebastian Haase wrote: >> Hi, >> long

Re: [Numpy-discussion] Unable to install Numpy

2010-02-07 Thread Sebastian Haase
>> > Python 2.6.4 >> > Numpy numpy-1.4.0-win32-superpack- >> > python2.6.exe >> >> Are you using a 32 bits python ? We only provide 32 bits installers >> for now on windows2, >> Hello, Regarding this post - is there a "non official&qu

[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, Sebas

[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

  1   2   3   4   >