delicatessen.utilities.polygamma
- polygamma(n, x)
Polygamma function. This is a wrapper function of
scipy.special.polygammameant to enable automatic differentation withdelicatessen. When the input is aPrimalTangentPairsobject, then an internal function that implements the polygamma function is called. Otherwise,scipy.special.polygammais called for the input object.- Parameters
n (int) – Order of the derivative of the digamma function
x (int, float, ndarray) – Real valued input
- Returns
Return type depends on the input type (
PrimalTangentPairswill returnPrimalTangentPairs, otherwise willreturn
ndarray).