Skip to content

Commit 2570662

Browse files
committed
docstrings
1 parent 688cb60 commit 2570662

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pyadjoint/adjfloat.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from functools import wraps
12
from .block import Block
23
from .overloaded_type import OverloadedType, register_overloaded_type, create_overloaded_object
34
from .tape import get_working_tape, annotate_tape, stop_annotating
@@ -134,6 +135,7 @@ def _ad_str(self):
134135
_log = math.log
135136

136137

138+
@wraps(_exp)
137139
def exp(a, **kwargs):
138140
annotate = annotate_tape(kwargs)
139141
if annotate:
@@ -153,6 +155,7 @@ def exp(a, **kwargs):
153155

154156

155157
def log(a, **kwargs):
158+
"""Return the natural logarithm of a."""
156159
annotate = annotate_tape(kwargs)
157160
if annotate:
158161
a = create_overloaded_object(a)

0 commit comments

Comments
 (0)