Skip to content

Commit 3e518de

Browse files
committed
Use math font instead of \em (or where it was missing compared to N4744)
Signed-off-by: Matthias Kretz <[email protected]>
1 parent 4868de0 commit 3e518de

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/algorithms.tex

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
\pnum
5858
In the following, $X_i$ and $X_j$ refer to evaluations of the \emph{same} expression
5959
or statement contained in the application of an element access function
60-
corresponding to the i\textsuperscript{th} and j\textsuperscript{th} elements of the input sequence.
60+
corresponding to the $i^\text{th}$ and $j^\text{th}$ elements of the input sequence.
6161
\begin{note}There might be several evaluations $X_k$, $Y_k$, etc. of a single
6262
expression or statement in application $k$, for example, if the expression or
6363
statement appears in a loop within the element access function.\end{note}
@@ -284,7 +284,7 @@
284284
Each of the function templates in this section return an \defn{induction object} of unspecified type having an \defn{induction value type} and encapsulating an initial value $i$ of that type and, optionally, a $stride$.
285285

286286
\pnum
287-
For each element in the input range, an algorithm over input sequence S computes an \defn{induction value} from an induction variable and ordinal position $p$ within S by the formula $i + p * stride$ if a stride was specified or $i + p$ otherwise. This induction value is passed to the element access function.
287+
For each element in the input range, an algorithm over input sequence $S$ computes an \defn{induction value} from an induction variable and ordinal position $p$ within $S$ by the formula $i + p * stride$ if a stride was specified or $i + p$ otherwise. This induction value is passed to the element access function.
288288

289289
\pnum
290290
An induction object may refer to a \defn{live-out} object to hold the final value of the induction sequence. When the algorithm using the induction object completes, the live-out object is assigned the value $i + n * stride$, where $n$ is the number of elements in the input range.
@@ -331,7 +331,7 @@
331331
\requires For the overloads with an \tcode{ExecutionPolicy}, \tcode{I} shall be an integral type or meet the requirements of a forward iterator type; otherwise, \tcode{I} shall be an integral type or meet the requirements of an input iterator type. \tcode{Size} shall be an integral type and \tcode{n} shall be non-negative. \tcode{S} shall have integral type and \tcode{stride} shall have non-zero value. \tcode{stride} shall be negative only if \tcode{I} has integral type or meets the requirements of a bidirectional iterator. The \tcode{rest} parameter pack shall have at least one element, comprising objects returned by invocations of \tcode{reduction} (\ref{parallel.alg.reductions}) and/or \tcode{induction} (\ref{parallel.alg.inductions}) function templates followed by exactly one invocable element-access function, $f$. For the overloads with an \tcode{ExecutionPolicy}, $f$ shall meet the requirements of \tcode{CopyConstructible}; otherwise, $f$ shall meet the requirements of \tcode{MoveConstructible}.
332332

333333
\pnum
334-
\effects Applies {\em f} to each element in the \defn{input sequence}, as described below, with additional arguments corresponding to the reductions and inductions in the \tcode{rest} parameter pack. The length of the input sequence is:
334+
\effects Applies $f$ to each element in the \defn{input sequence}, as described below, with additional arguments corresponding to the reductions and inductions in the \tcode{rest} parameter pack. The length of the input sequence is:
335335

336336
\begin{itemize}
337337
\item \tcode{n}, if specified,
@@ -345,21 +345,21 @@
345345

346346
The first element in the input sequence is \tcode{start}. Each subsequent element is generated by adding \tcode{stride} to the previous element, if \tcode{stride} is specified, otherwise by incrementing the previous element.
347347
\begin{note}As described in the \Cpp Standard, \CppXref{algorithms.general}, arithmetic on non-random-access iterators is performed using advance and distance.\end{note}
348-
\begin{note}The order of the elements of the input sequence is important for determining ordinal position of an application of {\em f}, even though the applications themselves may be unordered.\end{note}
348+
\begin{note}The order of the elements of the input sequence is important for determining ordinal position of an application of $f$, even though the applications themselves may be unordered.\end{note}
349349

350-
The first argument to {\em f} is an element from the input sequence.\begin{note}If \tcode{I} is an iterator type, the iterators in the input sequence are not dereferenced before being passed to {\em f}.\end{note} For each member of the \tcode{rest} parameter pack excluding {\em f}, an additional argument is passed to each application of {\em f} as follows:
350+
The first argument to $f$ is an element from the input sequence.\begin{note}If \tcode{I} is an iterator type, the iterators in the input sequence are not dereferenced before being passed to $f$.\end{note} For each member of the \tcode{rest} parameter pack excluding $f$, an additional argument is passed to each application of $f$ as follows:
351351

352352
\begin{itemize}
353353
\item If the pack member is an object returned by a call to a reduction function listed in section [parallel.alg.reductions], then the additional argument is a reference to an accumulator of that reduction object.
354354

355-
\item If the pack member is an object returned by a call to \tcode{induction}, then the additional argument is the induction value for that induction object corresponding to the position of the application of {\em f} in the input sequence.
355+
\item If the pack member is an object returned by a call to \tcode{induction}, then the additional argument is the induction value for that induction object corresponding to the position of the application of $f$ in the input sequence.
356356
\end{itemize}
357357

358358
\pnum
359-
\complexity Applies {\em f} exactly once for each element of the input sequence.
359+
\complexity Applies $f$ exactly once for each element of the input sequence.
360360

361361
\pnum
362-
\remarks If {\em f} returns a result, the result is ignored.
362+
\remarks If $f$ returns a result, the result is ignored.
363363

364364
\end{itemdescr}
365365

0 commit comments

Comments
 (0)