In[]:=
deploy
Fri 9 Jul 2021 11:20:10
More examples: https://mathematica.stackexchange.com/questions/138708/differentiating-functions-of-vectors-matrices
(*Downloadfromhttps://github.com/carlwoll/MatrixD/releases,unzip,thenrunthis*)​​PacletInstall["~/Downloads/MatrixD-1.0.paclet"]
PacletInstall
:A paclet named MatrixD with the same version number (​1.0​) is already installed. Use PacletUninstall to remove the existing version first, or call PacletInstall with ForceVersionInstall -> True.
Out[]=
$Failed
In[]:=
<<MatrixD`
In[]:=
MatrixD[Tr[W.A.W.B],W]//TraditionalForm
Out[]//TraditionalForm=
T
A
.
T
W
.
T
B
+
T
B
.
T
W
.
T
A