Skip to content

Commit

Permalink
Require it to be scalar.
Browse files Browse the repository at this point in the history
  • Loading branch information
HansOlsson committed Apr 5, 2023
1 parent 3739490 commit bf5fdee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chapters/functions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1631,7 +1631,7 @@ \subsection{Partial Derivatives of Functions}\label{partial-derivatives-of-funct
\end{lstlisting}
is the partial derivative of a function, and may only be used as declarations of functions.

The semantics is that a function (and only a function) can be specified in this form, defining that it is the partial derivative of the function to the right of the equal sign (looked up in the same way as a short class definition, and the looked up name must be a function), and partially differentiated with respect to each {\lstinline!IDENT!} in order (starting from the first one). The {\lstinline!IDENT!} must be {\lstinline!Real!} inputs to the function.
The semantics is that a function (and only a function) can be specified in this form, defining that it is the partial derivative of the function to the right of the equal sign (looked up in the same way as a short class definition, and the looked up name must be a function), and partially differentiated with respect to each {\lstinline!IDENT!} in order (starting from the first one). The {\lstinline!IDENT!} must be scalar {\lstinline!Real!} inputs to the function.

The comment allows a user to comment the function (in the info-layer and as one-line description, and as icon).

Expand Down

0 comments on commit bf5fdee

Please sign in to comment.