Is matrix calculus possible within sagemath?
For example, is it possible to compute the following partial derivative in Sagemath:
Aij=∂eij(x)∂xi=(−RTijRTiRTij∂RTi∂θi(tj−ti)0T−1)
for
eij(x)=(RTij(RTi(tj−ti)−tij)θj−θi−θij)
and
xTi=(tTi,θi) zTij=(tTij,θij)
The background shouldn't be important, but just for completeness: this example is an excerpt from Robotics, especially the problem of Pose Graph Simultaneous Mapping and Localization. xi defines a pose in R2 with translation ti and rotation angle θi, zij defines a transform between two poses and eij(x) defines the error between two poses, i.e. a transform between them.