From 763af2bc0b8e4129af67b211d019de1ca6094d72 Mon Sep 17 00:00:00 2001 From: Henrik Tidefelt Date: Tue, 25 Jan 2022 22:42:30 +0100 Subject: [PATCH] En-dash --- chapters/functions.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapters/functions.tex b/chapters/functions.tex index 8b8e7f26c..79bb1a809 100644 --- a/chapters/functions.tex +++ b/chapters/functions.tex @@ -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 -- Scalar Functions Applied to Array Arguments}\label{scalar-functions-applied-to-array-arguments}\label{automatic-vectorization-scalar-functions-applied-to-array-arguments} 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.