Re: Matrix Differentiation
- To: mathgroup at smc.vnet.net
- Subject: [mg85917] Re: Matrix Differentiation
- From: dh <dh at metrohm.ch>
- Date: Wed, 27 Feb 2008 04:34:28 -0500 (EST)
- References: <fq0uav$kab$1@smc.vnet.net>
Hi Mark, you got what you asked for. The syntax you used gives the gradient, see the manual. What you want is written as: D[M,x1,x2,x3,x4] hope this helps, Daniel mark wrote: > Hi all, > > I need to differentiate a 4x4 matrix M with respect to four variables > x1,x2,x3 and x4. > > I have tried to use the function D as follows: > > D[M,{{x1,x2,x3,x4}}] > > what I get is a 4x4 matrix and each term in this matrix is a vector. > > Am I right when I used this function or there is another function to > do so? > > Thanks >