Coverage for Adifpy/differentiate/reverse_mode.py: 50%
2 statements
« prev ^ index » next coverage.py v6.5.0, created at 2022-11-22 19:44 -0500
« prev ^ index » next coverage.py v6.5.0, created at 2022-11-22 19:44 -0500
1"""Reverse mode"""
3def reverse_mode(func, pt, seed_vector):
4 """Reverse mode module that will be called by main.py
6 This module will take a python function (func), a specific function input
7 (pt), and a directional seed vector (seed) as input. The output of the
8 function is the value (with type ndarray) of the derivative of func at pt,
9 with respect to seed, evaluated at machine precision using forward mode AD.
11 Typical usage example:
13 foo = reverse_mode(func, pt, seed)
14 """
15 # TODO: implement
16 pass