Skip to content

Commit

Permalink
Group terms under 'array'
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikt-ma committed Dec 15, 2020
1 parent 55b7cbb commit febd629
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions chapters/arrays.tex
Expand Up @@ -78,7 +78,7 @@ \section{Array Declarations}\label{array-declarations}
\end{table}

% henrikt-ma: The following paragraph was only modified slightly when migrated from the old glossary to the index, and seems to be in need of more attention:
A component declared with array dimensions, or where the element type is an array type, is called an \firstuse{array variable}\index{array variable}.
A component declared with array dimensions, or where the element type is an array type, is called an \firstuse{array variable}\index{array!variable}.
It is a component whose components are \willintroduce{array elements} (see below).
For an array variable, the ordering of its components matters:
The $k$:th element in the sequence of components of an array variable \lstinline!x! is the array element with index \lstinline!k!, denoted \lstinline!x[k]!.
Expand All @@ -88,7 +88,7 @@ \section{Array Declarations}\label{array-declarations}
An array element is hence referenced using $n$ indices in general, where $n$ is the number of dimensions of the array.

% henrikt-ma: The following paragraph was only modified slightly when migrated from the old glossary to the index, and seems to be in need of more attention:
A component contained in an array variable is called an \firstuse{array element}\index{array element}.
A component contained in an array variable is called an \firstuse{array element}\index{array!element}.
An array element has no identifier.
Instead they are referenced by array access expressions called indices that use enumeration values or positive integer index values.

Expand Down Expand Up @@ -711,7 +711,7 @@ \subsection{Matrix and Vector Algebra Functions}\label{matrix-and-vector-algebra

\section{Vector, Matrix and Array Constructors}\label{vector-matrix-and-array-constructors}

The \firstuse{array constructor}\index{array constructor} function \lstinline!array(A, B, C, $\ldots$)! constructs an array from its arguments according to the following rules:
The \firstuse{array constructor}\index{array!constructor} function \lstinline!array(A, B, C, $\ldots$)! constructs an array from its arguments according to the following rules:
\begin{itemize}
\item
Size matching: All arguments must have the same sizes, i.e.,
Expand Down Expand Up @@ -756,7 +756,7 @@ \subsection{Array Constructor with Iterators}\label{array-constructor-with-itera
\begin{lstlisting}[language=grammar]
array "(" expression for iterators ")"
\end{lstlisting}
is an \firstuse{array constructor with iterators}\index{array constructor!with iterators}.
is an \firstuse{array constructor with iterators}\index{array!constructor!with iterators}.
The expressions inside the iterators of an array constructor shall be vector expressions.
They are evaluated once for each array constructor, and are evaluated in the scope immediately enclosing the array constructor.

Expand Down

0 comments on commit febd629

Please sign in to comment.