Re: [Numpy-discussion] numerical gradient, Jacobian, and Hessian

2014-04-21 Thread Eelco Hoogendoorn
I was going to suggest numdifftools; its a very capable package in my experience. Indeed it would be nice to have it integrated into scipy. Also, in case trying to calculate a numerical gradient is a case of 'the math getting too bothersome' rather than no closed form gradient actually existing:

Re: [Numpy-discussion] string replace

2014-04-21 Thread Eelco Hoogendoorn
Indeed this isn't numpy, and I don't see how your collegues opinions have bearing on that issue; but anyway.. There isn't a 'python' way to do this, the best method involves some form of parsing library. Undoubtly there is a one-line regex to do this kind of thing, but regexes are themselves the

Re: [Numpy-discussion] f2py links extensions to incorrect python installation on OSX / Anaconda

2014-04-21 Thread Ralf Gommers
On Thu, Mar 27, 2014 at 10:11 PM, Alex Goodman alex.good...@colostate.eduwrote: Hi Robert, That did the trick, thanks! Alex On Thu, Mar 27, 2014 at 3:02 PM, Robert Kern robert.k...@gmail.comwrote: On Thu, Mar 27, 2014 at 8:50 PM, David Cournapeau courn...@gmail.com wrote: On Thu,

Re: [Numpy-discussion] numerical gradient, Jacobian, and Hessian

2014-04-21 Thread alex
On Mon, Apr 21, 2014 at 3:13 AM, Eelco Hoogendoorn hoogendoorn.ee...@gmail.com wrote: As far as I can tell, [Theano] is actually the only tensor/ndarray aware differentiator out there And AlgoPy, a tensor/ndarray aware arbitrary order automatic differentiator (https://pythonhosted.org/algopy/)