提交 b7445e97 authored 作者: Frederic's avatar Frederic

Add doc for gamma, gammaln, psi and chi2sf.

上级 edbd70cd
......@@ -1327,6 +1327,29 @@ Mathematical
Returns a variable representing the inverse error function or the inverse complementary error function. `wikipedia <http://en.wikipedia.org/wiki/Error_function#Inverse_functions>`__
.. function:: gamma(a)
Returns a variable representing the gamma function.
.. function:: gammaln(a)
Returns a variable representing the logarithm of the gamma function.
.. function:: psi(a)
Returns a variable representing the derivative of the logarithm of
the gamma function (also called the digamma function).
.. function:: chi2sf(a, df)
Returns a variable representing the survival function (1-cdf —
sometimes more accurate).
C code is provided in the Theano_lgpl repository.
This make it faster.
https://github.com/Theano/Theano_lgpl.git
.. _libdoc_tensor_broadcastable:
......
......@@ -208,6 +208,7 @@ class GammaLn(UnaryScalarOp):
return GammaLn.st_impl(x)
else:
super(GammaLn, self).impl(x)
def grad(self, inp, grads):
x, = inp
gz, = grads
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论