Skip to content

Commit

Permalink
Add section on trade-off in choice of inlining annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikt-ma committed Apr 29, 2021
1 parent f2e2a02 commit f6571ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions chapters/functions.tex
Expand Up @@ -1685,6 +1685,10 @@ \section{Function Inlining and Event Generation}\label{function-inlining-and-eve
\end{tabular}
\end{center}

Inlining a function makes the statements of the function body accessible to symbolic operations, potentially leading to expression simplifications and more efficient solution of equations.
At the same time, another important consequence of inlining a function is that any annotations for derivatives or inverses are lost.
Hence, one needs to find the right balance between inlining too early (loss of provided derivatives and inverses) and too late (earlier stages of symbolic processing cannot benefit from symbolic simplifications).

\begin{annotationdefinition}[Inline]
\begin{synopsis}[grammar]\begin{lstlisting}
"Inline" "=" ( false | true )
Expand Down

0 comments on commit f6571ed

Please sign in to comment.