Re: [Numpy-discussion] any interest in including a second-ordergradient?

2008-10-28 Thread Andrew Hawryluk
: Re: [Numpy-discussion] any interest in including a second- ordergradient? Hi Andrew We should discuss different options for the implementation. The namespace is fairly cluttered, and it may be that we want to implement gradient3 some time in the future as well. Maybe something like

Re: [Numpy-discussion] any interest in including a second-ordergradient?

2008-10-28 Thread Robert Kern
On Tue, Oct 28, 2008 at 16:28, Andrew Hawryluk [EMAIL PROTECTED] wrote: I agree that the gradient functions should be combined, especially considering how much redundant code would be added by keeping them separate. Here is one possible implementation, but I don't like the signature yet as it

Re: [Numpy-discussion] any interest in including a second-ordergradient?

2008-10-28 Thread Fabrice Silva
Le mardi 28 octobre 2008 à 15:28 -0600, Andrew Hawryluk a écrit : I agree that the gradient functions should be combined, especially considering how much redundant code would be added by keeping them separate. Here is one possible implementation, but I don't like the signature yet as it

Re: [Numpy-discussion] any interest in including a second-ordergradient?

2008-10-28 Thread David Warde-Farley
On 28-Oct-08, at 5:57 PM, Fabrice Silva wrote: Are there some parts of the code that may be used only once to calculate both the gradient and the second derivative (isn't it called the hessian, at least in the N-d case) ? Probably. I'd imagine depends on your differencing scheme; central