Skip to content

Commit

Permalink
Clear up description of element-wise evaluation of vectorized call
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikt-ma committed Nov 10, 2020
1 parent ee77d06 commit d1e1afa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions chapters/functions.tex
Expand Up @@ -841,12 +841,13 @@ \subsection{Scalar Functions Applied to Array Arguments}\label{scalar-functions-
fashion, and the result has the type specified by the function
definition.
\item
The result of the function call expression is an $n$-dimensional array with the same dimension sizes as the foreach arguments. Each element \lstinline!ei!, \ldots, \lstinline!j! is the result of applying \lstinline!f! to arguments constructed from the original arguments in the following way:
The result of the function call expression is an $n$-dimensional array \lstinline!e! with the same dimension sizes as the foreach arguments.
Each element \lstinline!e[$i$, $\ldots$, $j$]! is the result of applying \lstinline!f! to arguments constructed from the original arguments in the following way:
\begin{itemize}
\item
If the argument is not a foreach argument, it is used as-is.
\item
If the argument is a foreach argument, the element at index \lstinline![i, $\ldots$, j]! is used.
If the argument is a foreach argument, the element at index \lstinline![$i$, $\ldots$, $j$]! is used.
\end{itemize}
\end{enumerate}

Expand Down

0 comments on commit d1e1afa

Please sign in to comment.