Skip to content

Commit 29c3860

Browse files
author
TobiKattmann
committed
Fixing small derivative mistake in Expresssion Template explanation.
1 parent 78591f3 commit 29c3860

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_docs/Advanced-AD-Techniques.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ we can build an internal representation of each expression to directly compute a
2525
The picture below shows the computational graph for the expression `φ=cos(v1)v2` and the compile-time representation as object with `su2double` being the general datatype used throughout SU2.
2626
![Expression Templates](http://www.scicomp.uni-kl.de/wordpress/wp-content/uploads/2016/05/Screenshot-from-2016-05-20-15-49-59.png)
2727

28-
This object can be traversed to compute and store the partial derivatives `∂φ/∂v1=cos(v1)` and `∂φ/∂v2=-sin(v1)v2` based on the derivatives of each involved unary or binary operation. If recording is enabled the traversal of the computational graph of each
28+
This object can be traversed to compute and store the partial derivatives `∂φ/∂v1=-sin(v1)v2` and `∂φ/∂v2=cos(v1)` based on the derivatives of each involved unary or binary operation. If recording is enabled the traversal of the computational graph of each
2929
expression is started as soon as it occurs on the right-hand side in a statement. Note that the partial derivatives are only stored if the corresponding argument has some dependency on the input variables set by the user. This kind of dependency or
3030
activity tracking is relatively easy to accomplish since every variable stores an index along with its value. A
3131
zero index represents passive variables while a non-zero index identifies active variables. This index will be

0 commit comments

Comments
 (0)