From d1e1afab44d3dde9a440264263879526d34b348f Mon Sep 17 00:00:00 2001 From: Henrik Tidefelt Date: Tue, 10 Nov 2020 15:43:25 +0100 Subject: [PATCH] Clear up description of element-wise evaluation of vectorized call --- chapters/functions.tex | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/chapters/functions.tex b/chapters/functions.tex index 8501eb2a9..edd5a5bc9 100644 --- a/chapters/functions.tex +++ b/chapters/functions.tex @@ -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}