提交 37944556 authored 作者: TimSalimans's avatar TimSalimans

Fix docstring

上级 1fef6678
...@@ -88,7 +88,7 @@ erfc = Erfc(upgrade_to_float_no_complex, name='erfc') ...@@ -88,7 +88,7 @@ erfc = Erfc(upgrade_to_float_no_complex, name='erfc')
class Erfcx(UnaryScalarOp): class Erfcx(UnaryScalarOp):
""" """
Implements the scaled complementary error function exp(x**2)*erfc(x) in a numerically stable way for large x. This Implements the scaled complementary error function exp(x**2)*erfc(x) in a numerically stable way for large x. This
is useful for calculating things like log(erfc(x)) = log(erfcx(x)) - 2 * x without causing underflow. Should only is useful for calculating things like log(erfc(x)) = log(erfcx(x)) - x ** 2 without causing underflow. Should only
be used if x is known to be large and positive, as using erfcx(x) for large negative x may instead introduce be used if x is known to be large and positive, as using erfcx(x) for large negative x may instead introduce
overflow problems. overflow problems.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论