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

1"""Reverse mode""" 

2 

3def reverse_mode(func, pt, seed_vector): 

4 """Reverse mode module that will be called by main.py 

5 

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. 

10 

11 Typical usage example: 

12 

13 foo = reverse_mode(func, pt, seed) 

14 """ 

15 # TODO: implement 

16 pass