Compute the sum of the Hadamard (element-wise) product of the derivative of (the rate matrix, K, with respect to the free parameters,`theta`, dK_ij / dtheta_u) and another matrix, A.
Since dK/dtheta_u is a sparse matrix with a known sparsity structure, it’s more efficient to just do sum as we construct it, and never save the matrix elements directly.
Parameters: | theta : array
n : int
u : int
A : array of shape=(n, n), optional
out : [output], optional array of shape=(n, n)
|
---|---|
Returns: | s : double
|