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
Am 10.11.13 23:27, schrieb Charles R Harris:
>
>
>
> On Sun, Nov 10, 2013 at 5:12 PM, Christian K. <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,
>
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 t
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:
https://github.com/nu
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
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 whi
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
Robert Kern gmail.com> writes:
>
> On Thu, Jun 16, 2011 at 06:28, Christian K. 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 im
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
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
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
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
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 =
Robert Kern schrieb:
> On Fri, Jun 26, 2009 at 03:39, Christian K. wrote:
>> John Schulman 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
John Schulman 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?
Possibly no
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 extend
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
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
Numpy-discussion@sci
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 up
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. ,
Matthieu Brucher 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. tuples and lis
Matthieu Brucher 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 return element
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 ima
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 0.
Stefan van der Walt wrote:
> Hi Christiaan
>
> On Sun, Apr 15, 2007 at 02:03:49PM +0900, Christian K wrote:
>> could someone please provide example code for how to make a subclassed
>> ndarray
>> pickable? I don't quite understand the docs of ndarray.__reduce__.
&
David Cournapeau wrote:
> On Ubuntu and debian, you do NOT need any site.cfg to compile numpy with
> atlas support. Just install the package atlas3-base-dev, and you are
> done. The reason is that when *compiling* a software which needs atlas,
> the linker will try to find libblas.so in /usr/lib
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 mailin
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/li
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
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
/
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 2
31 matches
Mail list logo