From 3d0910efea423b3b27c83b774b73303b0acfd6d4 Mon Sep 17 00:00:00 2001 From: OLSSON Hans Date: Mon, 22 Jun 2020 17:22:58 +0200 Subject: [PATCH] Include proposed changes --- chapters/arrays.tex | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/chapters/arrays.tex b/chapters/arrays.tex index c93e491ed..265ea6427 100644 --- a/chapters/arrays.tex +++ b/chapters/arrays.tex @@ -195,16 +195,17 @@ \section{Built-in Array Functions}\doublelabel{built-in-array-functions} \lstinline[mathescape=true]!size(C, $j$)! = $1$ for $n_{\mathrm{A}} + 1 \leq j \leq n$, \lstinline[mathescape=true]!C[$i_{1}$, $\ldots$, $i_{n_{\mathrm{A}}}$, 1, $\ldots$, 1]! = \lstinline[mathescape=true]!A[$i_{1}$, $\ldots$, $i_{n_{\mathrm{A}}}$]!\\ \hline \end{longtable} -The argument $n$ must be literal or a constant that can be evaluated during translation because it determines +The argument $n$ must be a constant that can be evaluated during translation, as it determines the number of dimensions of the returned array. - \begin{nonnormative} -Below, \lstinline!promote! is only used for constant $n$. - Varying $n$ for \lstinline!promote! complicates matrix handling as it can change matrix-equations in subtle ways (e.g.\ changing inner products to matrix multiplication). \end{nonnormative} +\begin{nonnormative} +Below, \lstinline!promote! is only used for constant $n$ that can be evaluated during translation. +\end{nonnormative} + \begin{nonnormative} Some examples of using the functions defined in the following \autoref{array-dimension-and-size-functions} to \autoref{matrix-and-vector-algebra-functions}: