Skip to content

Commit

Permalink
Shorten subsection headings below "Function Call"
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikt-ma committed Jan 25, 2022
1 parent 1833cee commit f846121
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions chapters/functions.tex
Expand Up @@ -405,7 +405,7 @@ \section{Function Call}\label{function-call}
Function classes and record constructors (\cref{record-constructor-functions}) and enumeration type
conversions (\cref{type-conversion-of-integer-to-enumeration-values}) can be called as described in this section.

\subsection{Positional or Named Input Arguments of Functions}\label{positional-or-named-input-arguments-of-functions}
\subsection{Positional or Named Input Arguments}\label{positional-or-named-input-arguments-of-functions}

A function call has optional positional arguments followed by zero, one
or more named arguments, such as
Expand Down Expand Up @@ -473,7 +473,7 @@ \subsection{Positional or Named Input Arguments of Functions}\label{positional-o
\end{lstlisting}
\end{example}

\subsection{Functional Input Arguments to Functions}\label{functional-input-arguments-to-functions}
\subsection{Functional Input Arguments}\label{functional-input-arguments-to-functions}

A functional input argument to a function is an argument of function
type. The declared type of such an input formal parameter in a function
Expand Down Expand Up @@ -659,7 +659,7 @@ \subsubsection{Function Partial Application}\label{function-partial-application}
\end{lstlisting}
\end{example}

\subsection{Output Formal Parameters of Functions}\label{output-formal-parameters-of-functions}
\subsection{Output Formal Parameters}\label{output-formal-parameters-of-functions}

A function may have more than one output component, corresponding to
multiple return values. The only way to use more than the first return
Expand Down Expand Up @@ -733,7 +733,7 @@ \subsection{Output Formal Parameters of Functions}\label{output-formal-parameter
\end{lstlisting}
\end{example}

\subsection{Initialization and Binding Equations of Components in Functions}%
\subsection{Initialization and Binding Equations}%
\label{initialization-and-binding-equations-of-components-in-functions}%
\label{initialization-and-declaration-assignments-of-components-in-functions}

Expand Down Expand Up @@ -778,7 +778,7 @@ \subsection{Initialization and Binding Equations of Components in Functions}%
section are also briefly described in \cref{function-as-a-specialized-class}.
\end{nonnormative}

\subsection{Flexible Array Sizes and Resizing of Arrays in Functions}\label{flexible-array-sizes-and-resizing-of-arrays-in-functions}
\subsection{Flexible Array Sizes and Resizing of Arrays}\label{flexible-array-sizes-and-resizing-of-arrays-in-functions}

\begin{nonnormative}
Flexible setting of array dimension sizes of arrays in
Expand Down Expand Up @@ -825,7 +825,7 @@ \subsection{Flexible Array Sizes and Resizing of Arrays in Functions}\label{flex
\end{lstlisting}
\end{example}

\subsection{Automatic Vectorization -- Scalar Functions Applied to Array Arguments}\label{scalar-functions-applied-to-array-arguments}\label{automatic-vectorization-scalar-functions-applied-to-array-arguments}
\subsection{Automatic Vectorization}\label{scalar-functions-applied-to-array-arguments}\label{automatic-vectorization}

Functions with one scalar return value can be applied to arrays element-wise, e.g.\ if \lstinline!A! is a vector of reals, then \lstinline!sin(A)! is a vector where each element is the result of applying the function \lstinline!sin! to the corresponding element in \lstinline!A!.
Only \lstinline!function! classes that are transitively non-replaceable (\cref{transitively-non-replaceable} and \cref{restrictions-on-base-classes-and-constraining-types-to-be-transitively-non-replaceable}) may be called vectorized.
Expand Down

0 comments on commit f846121

Please sign in to comment.