I have a model where the likelihood involves computing the sum of all the terms in the matrix
P = U exp(tD) U^-1
Where
UDU^-1 = Q
and Q is my matrix of parameters.If I wanted to use NUTS in PyMC3, NUTS would have to be able to compute the derivative of all the elements in P with respect to each of the elements in Q. Is this possible using the symbolic differentiator in Theano that PyMC3 uses?