Math¶
- torchpme.lib.exp1(x)[source]¶
Exponential integral E1.
For a real number \(x > 0\) the exponential integral can be defined as
\[E1(x) = \int_{x}^{\infty} \frac{e^{-t}}{t} dt\]- Parameters:
x – Input tensor (x > 0)
- Returns:
Exponential integral E1(x)
- torchpme.lib.gamma(x: Tensor) Tensor [source]¶
(Complete) Gamma function.
pytorch has not implemented the commonly used (complete) Gamma function. We define it in a custom way to make autograd work as in https://discuss.pytorch.org/t/is-there-a-gamma-function-in-pytorch/17122