Skip to content

Commit

Permalink
docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
dham committed Jun 20, 2024
1 parent 688cb60 commit 2570662
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyadjoint/adjfloat.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from functools import wraps
from .block import Block
from .overloaded_type import OverloadedType, register_overloaded_type, create_overloaded_object
from .tape import get_working_tape, annotate_tape, stop_annotating
Expand Down Expand Up @@ -134,6 +135,7 @@ def _ad_str(self):
_log = math.log


@wraps(_exp)
def exp(a, **kwargs):
annotate = annotate_tape(kwargs)
if annotate:
Expand All @@ -153,6 +155,7 @@ def exp(a, **kwargs):


def log(a, **kwargs):
"""Return the natural logarithm of a."""
annotate = annotate_tape(kwargs)
if annotate:
a = create_overloaded_object(a)
Expand Down

0 comments on commit 2570662

Please sign in to comment.