Re: [Numpy-discussion] Proposed new function for joining arrays: np.interleave

2014-04-21 Thread Ralf Gommers
On Mon, Apr 7, 2014 at 5:12 PM, Björn Dahlgren wrote: > Hello, > > Interleaving arrays is something I need to do every now and then, and by > the looks of stackoverflow so do others: > > > http://stackoverflow.com/questions/12861314/interleave-rows-of-two-numpy-arrays-in-python > http://stackover

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

2014-04-21 Thread alex
On Mon, Apr 21, 2014 at 3:13 AM, Eelco Hoogendoorn 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/) _

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 wrote: > Hi Robert, > > That did the trick, thanks! > > Alex > > > On Thu, Mar 27, 2014 at 3:02 PM, Robert Kern wrote: > >> On Thu, Mar 27, 2014 at 8:50 PM, David Cournapeau >> wrote: >> > >> > On Thu, Mar 27, 2014 at 8:30 PM, Alex Goodman < >> alex.

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 a

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