Re: [Numpy-discussion] switching from Numeric to numpy

2013-10-07 Thread Charles R Harris
On Mon, Oct 7, 2013 at 5:27 PM, john fernando wrote: > I have the following C code which is an extension to my python code. > > The python and C code use > #include > > what is the equivalent I can use in numpy that causes the minimum code > change? > > I did look through the old messages but di

[Numpy-discussion] switching from Numeric to numpy

2013-10-07 Thread john fernando
I have the following C code which is an extension to my python code. The python and C code use #include what is the equivalent I can use in numpy that causes the minimum code change? I did look through the old messages but didn't really find the answer-any help to a novice just starting out i

[Numpy-discussion] Bug in numpy.correlate documentation

2013-10-07 Thread Bernhard Spinnler
The numpy.correlate documentation says: correlate(a, v) = z[k] = sum_n a[n] * conj(v[n+k]) In [1]: a = [1, 2] In [2]: v = [2, 1j] In [3]: z = correlate(a, v, 'full') In [4]: z Out[4]: array([ 0.-1.j, 2.-2.j, 4.+0.j]) However, according to the documentation, z should be z[-1

Re: [Numpy-discussion] NumPy-Discussion Digest, Vol 85, Issue 19

2013-10-07 Thread Nathaniel Smith
On Mon, Oct 7, 2013 at 9:40 PM, Siegfried Gonzi wrote: > [I hope I am not screwing up the digest reply function here]. [You did, FYI. It happens...] > I am after a "whos" which would work in a script. It is not very often that > I develop code at the command line. > > I am definitely not one of

Re: [Numpy-discussion] NumPy-Discussion Digest, Vol 85, Issue 19

2013-10-07 Thread Siegfried Gonzi
>> Thanks, Siegfried >> >> >> -- >> The University of Edinburgh is a charitable body, registered in >> Scotland, with registration number SC005336. >> >> ___ >> NumPy-Discussion mailing list >> Nu

Re: [Numpy-discussion] [ANN] MATLAB ODE solvers - now available in Python (Dmitrey)

2013-10-07 Thread Dmitrey
FYI scipy ODE solvers vode, dopri5, dop853 also have been connected to OpenOpt, possibly with automatic differentiation by FuncDesigner  (dopri5 and dop853 don't use derivatives although). -- Regards, D. http://openopt.org/Dmitrey --- Исходное сообщение --- От кого: "Dav

Re: [Numpy-discussion] Equivalent to IDL's help function

2013-10-07 Thread Aronne Merrelli
There isn't anything quite the same. (I think what you are really asking for is a way to print the essential info about one variable name, at least that is how I would use the IDL "help" procedure). In IPython, I use the whos magic to do something similar, although it just prints this info for all

Re: [Numpy-discussion] Equivalent to IDL's help function

2013-10-07 Thread Nathaniel Smith
The other answers tell you how to access Python's excellent quick reference documentation, but from your examples I'm not sure if that's what you're looking for? If you just want to know what value some variable has at the interactive prompt, just type its name and hit enter. (This is a general fea

Re: [Numpy-discussion] Equivalent to IDL's help function

2013-10-07 Thread Benjamin Root
On Mon, Oct 7, 2013 at 1:15 PM, Siegfried Gonzi wrote: > Hi all > > What is the equivalent to IDL its help function, e.g. > > == > IDL> a = make_array(23,23,) > > IDL> help,a > > will result in: > > A FLOAT = Array[23, 23] > > or > > IDL> a = create_struct('idl',23) > > IDL> help

Re: [Numpy-discussion] Equivalent to IDL's help function

2013-10-07 Thread Aron Ahmadia
If you're using IPython (strongly recommended) a? a?? If you're just using Python help(a) A On Mon, Oct 7, 2013 at 1:15 PM, Siegfried Gonzi wrote: > Hi all > > What is the equivalent to IDL its help function, e.g. > > == > IDL> a = make_array(23,23,) > > IDL> help,a > > will result in: > > A

[Numpy-discussion] Equivalent to IDL's help function

2013-10-07 Thread Siegfried Gonzi
Hi all What is the equivalent to IDL its help function, e.g. == IDL> a = make_array(23,23,) IDL> help,a will result in: A FLOAT = Array[23, 23] or IDL> a = create_struct('idl',23) IDL> help,a gives: A STRUCT= -> Array[1] == I have been looking for i