Re: [Numpy-discussion] Second order gradient in numpy

2014-05-01 Thread Christian K.
Am 01.05.14 18:45, schrieb Yuxiang Wang: Hi all, I am trying to calculate the 2nd-order gradient numerically of an array in numpy. import numpy as np a = np.sin(np.arange(0, 10, .01)) da = np.gradient(a) dda = np.gradient(da) It looks like you are looking for the

Re: [Numpy-discussion] ANN: NumPy 1.7.2rc1 release

2013-11-12 Thread Christian K.
Am 10.11.13 23:27, schrieb Charles R Harris: On Sun, Nov 10, 2013 at 5:12 PM, Christian K. ckk...@hoc.net mailto:ckk...@hoc.net wrote: Am 10.11.13 21:06, schrieb Christian K.: Am 03.11.13 13:42, schrieb Julian Taylor: Hi all, I'm happy to announce the release

Re: [Numpy-discussion] ANN: NumPy 1.7.2rc1 release

2013-11-10 Thread Christian K.
Am 03.11.13 13:42, schrieb Julian Taylor: Hi all, I'm happy to announce the release candidate of Numpy 1.7.2. This is a bugfix only release supporting Python 2.4 - 2.7 and 3.1 - 3.3. More than 37 issues were fixed, the most important issues are listed in the release notes:

Re: [Numpy-discussion] ANN: NumPy 1.7.2rc1 release

2013-11-10 Thread Christian K.
Am 10.11.13 21:06, schrieb Christian K.: Am 03.11.13 13:42, schrieb Julian Taylor: Hi all, I'm happy to announce the release candidate of Numpy 1.7.2. This is a bugfix only release supporting Python 2.4 - 2.7 and 3.1 - 3.3. More than 37 issues were fixed, the most important issues

Re: [Numpy-discussion] ANN: 1.8.0b2 release.

2013-09-14 Thread Christian K.
Am 08.09.13 16:14, schrieb Charles R Harris: Hi all, I'm happy to announce the second beta release of Numpy 1.8.0. This release should solve the Windows problems encountered in the first beta. Many thanks to Christolph Gohlke and Julian Taylor for their hard work in getting those issues

Re: [Numpy-discussion] Setter on array

2013-08-16 Thread Christian K.
Hi Hugo, Am 14.08.13 10:34, schrieb Hugo Gagnon: What is the best way, if any, to do something whenever array elements are changed in-place? For example, if I have a = arange(10), then setting a[3] = 1 would, say, call a function automatically. a one made a simple subclass of ndarray which

Re: [Numpy-discussion] Random number generation and testing across different OS's.

2013-04-25 Thread Christian K.
Hi Andrew, Am 12.04.13 11:50, schrieb Andrew Nelson: I have written a differential evolution optimiser that i use for curvefitting. As a genetic optimisation technique it is stochastic and relies heavily on random number generators to do the minimisation. As part out of

Re: [Numpy-discussion] 3d ODR

2011-06-17 Thread Christian K .
Robert Kern robert.kern at gmail.com writes: On Thu, Jun 16, 2011 at 06:28, Christian K. ckkart at hoc.net wrote: Hi, I need to do fit a 3d surface to a point cloud. This sounds like a job for 3d orthogonal distance regression. Does anybody know of an implementation? As eat points

[Numpy-discussion] 3d ODR

2011-06-16 Thread Christian K .
Hi, I need to do fit a 3d surface to a point cloud. This sounds like a job for 3d orthogonal distance regression. Does anybody know of an implementation? Regards, Christian K. ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http

[Numpy-discussion] fast robus implementation of float()

2011-03-22 Thread Christian K.
Hi, I wonder if someone has a good solution for a fast conversion of gridded ascii data to ndarray. It should manage ',' as decimal point (on demand) and special windows numbers as 1.#INF. Of course, this is easy to wrap in a small function but I expect it to be slow when the input size is in

Re: [Numpy-discussion] float conversion

2011-01-16 Thread Christian K.
Am 16.01.11 09:24, schrieb Alex Ter-Sarkissov: hi every1, I got the following issue: I wrote a function that converts binary strings into a decimal value (binary expansion). When I write type(x) to find out the type of the value I get NoneType. Therefore I can't Your function most

Re: [Numpy-discussion] Sine Distribution on a 2D Array

2010-07-25 Thread Christian K.
Am 25.07.10 06:38, schrieb Ian Mallett: Hi, So I have a square 2D array, and I want to fill the array with sine values. The values need to be generated by their coordinates within the array. The center of the array should be treated as the angle 90 degrees. Each of the four edges should

[Numpy-discussion] matlab for numpy users

2009-09-17 Thread Christian K .
Hi, this is probaby an unusual question here from someone used to numpy who is forced to work with matlab and it is not exactly the right place to ask. Sorry for that. Is there something like broadcasting in matlab? E.g. how can I do something like that: a = ones((50,50), dtype=float) time

Re: [Numpy-discussion] switching to float32

2009-06-26 Thread Christian K .
John Schulman joschu at caltech.edu writes: I'm trying to reduce the memory used in a calculation, so I'd like to switch my program to float32 instead of float64. Is it possible to change the numpy default float size, so I don't have to explicitly state dtype=np.float32 everywhere?

Re: [Numpy-discussion] switching to float32

2009-06-26 Thread Christian K.
Robert Kern schrieb: On Fri, Jun 26, 2009 at 03:39, Christian K.ckk...@hoc.net wrote: John Schulman joschu at caltech.edu writes: I'm trying to reduce the memory used in a calculation, so I'd like to switch my program to float32 instead of float64. Is it possible to change the numpy default

[Numpy-discussion] replace voids in 2d dat with nearest neighbour value

2009-04-06 Thread Christian K .
Hi, I am looking for an elegant and fast way to fill the voids of a 2d array with neighbouring values. The array's size can be up to (1000, 1000) and its values are slowly varying around a mean value. What I call voids are values which are far from the mean value (+- 80%). A void usually

[Numpy-discussion] [EMAIL PROTECTED]

2008-11-05 Thread Christian K.
Hallo Nina, ich huete gerade meinen kranken Sohn, wollte aber nicht versaeumen, Platten zu reservieren: Januar bis einschliesslich Juni 2009 haette ich gerne 2 Platten pro Monat gruesse, Christian ___ Numpy-discussion mailing list

Re: [Numpy-discussion] [EMAIL PROTECTED]

2008-11-05 Thread Christian K.
darn! How could I be that stupid... Please ignore the last message. Christian ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] floating point char - bug?

2008-08-31 Thread Christian K.
Hi, I just came across somethin I never noticed before. I cannot say whether this is due to an update of numpy but it is possible - I am running 1.1.1 on __german__ windows. Here is the observation: a = N.linspace(0,1,5) a array([ 0. , 0.25, 0.5 , 0.75, 1. ]) a.astype(float) array([ 0.

Re: [Numpy-discussion] floating point char - bug?

2008-08-31 Thread Christian K.
Charles R Harris schrieb: On Sun, Aug 31, 2008 at 1:14 PM, Christian K. [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi, I just came across somethin I never noticed before. I cannot say whether this is due to an update of numpy but it is possible - I am running

Re: [Numpy-discussion] Getting an item in an array with its coordinates given by another array

2007-10-29 Thread Christian K .
Matthieu Brucher matthieu.brucher at gmail.com writes: But if I have the coordinates of the points in an array, I have to reshape it and then convert it into a list. Or convert it into a list and then convert it to a tuple. I know that advanced indexing is useful, but here it is not coherent.

Re: [Numpy-discussion] Getting an item in an array with its coordinates given by another array

2007-10-28 Thread Christian K .
Matthieu Brucher matthieu.brucher at gmail.com writes: Little correction, only c[(2,3)] gives me what I expect, not c[[2,3]], which is even stranger. c[(2,3)] is the same as c[2,3] and obviously works as you expected. c[[2,3]] is refered to as 'advanced indexing' in the numpy book. It will

Re: [Numpy-discussion] linux cluster installation

2007-05-03 Thread Christian K
John Washakie wrote: From: John Washakie [EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Tue, 1 May 2007 17:38:52 +0200 Subject: linux cluster installation What is the best way to install numpy and ultimately scipy on a cluster of linux machines so that you just install it once? I imagine you

Re: [Numpy-discussion] Help using numPy to create a very large multi dimensional array

2007-04-18 Thread Christian K.
Bruno Santos wrote: I try to use the expression as you said, but I'm not getting the desired result, My text file look like this: # num rows=115 num columns=2634 AbassiM.txt 0.033023 0.033023 0.033023 0.165115 0.4623210.00 AgricoleW.txt 0.038691 0.038691 0.038691 0.232147

Re: [Numpy-discussion] building numpy with atlas on ubuntu edgy

2007-04-14 Thread Christian K
Robert Kern wrote: Christian K wrote: Hi, I'm trying to build numpy from svn on ubuntu edgy with atlas provided by ubuntu package atlas3-sse2-dev which contains: /usr /usr/lib /usr/lib/sse2 /usr/lib/sse2/libatlas.a /usr/lib/sse2/libcblas.a /usr/lib/sse2/libf77blas.a /usr/lib/sse2

[Numpy-discussion] pickable ndarray subclass

2007-04-14 Thread Christian K
Hi, could someone please provide example code for how to make a subclassed ndarray pickable? I don't quite understand the docs of ndarray.__reduce__. My subclassed ndarray has just one additional attribute. Thanks, Christian ___ Numpy-discussion

[Numpy-discussion] building numpy with atlas on ubuntu edgy

2007-04-13 Thread Christian K
Hi, I'm trying to build numpy from svn on ubuntu edgy with atlas provided by ubuntu package atlas3-sse2-dev which contains: /usr /usr/lib /usr/lib/sse2 /usr/lib/sse2/libatlas.a /usr/lib/sse2/libcblas.a /usr/lib/sse2/libf77blas.a /usr/lib/sse2/liblapack_atlas.a /usr/lib/atlas /usr/lib/atlas/sse2

Re: [Numpy-discussion] building numpy with atlas on ubuntu edgy

2007-04-13 Thread Christian K
Christian K wrote: Hi, I'm trying to build numpy from svn on ubuntu edgy with atlas provided by ubuntu package atlas3-sse2-dev which contains: [...] I tried both with and without a site.cfg: [DEFAULT] library_dirs = /usr/lib/sse2 include_dirs = /usr/include [blas_opt

Re: [Numpy-discussion] Nonblocking Plots with Matplotlib

2007-03-19 Thread Christian K .
Hi Bill, I just tried ezplot and encountered some problems: In [1]: import ezplot In [2]: p = ezplot.Plotter() In [3]: p.plot([1,2,3],[1,4,9],marker='o') At this point a window pops up for a second, closes again and plot does not return. I'm running python 2.4.4 on kubuntu linux with wxPython