Skip to content

Commit 1a0dd18

Browse files
committed
Format "i^th" consistently.
Fixes #653, see also #974.
1 parent d7c6d7f commit 1a0dd18

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

source/containers.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -2787,7 +2787,7 @@
27872787
a.size(). For \tcode{unordered_multiset} and \tcode{unordered_multimap},
27882788
the complexity of \tcode{operator==} is proportional to $\sum E_i^2$
27892789
in the average case and to $N^2$ in the worst case, where $N$ is \tcode{a.size()},
2790-
and $E_i$ is the size of the $i^{th}$ equivalent-key group in \tcode{a}.
2790+
and $E_i$ is the size of the $i^\text{th}$ equivalent-key group in \tcode{a}.
27912791
However, if the respective elements of each corresponding pair of
27922792
equivalent-key groups $Ea_i$ and $Eb_i$ are arranged in the same order
27932793
(as is commonly the case, e.g., if \tcode{a} and \tcode{b} are unmodified copies

source/numerics.tex

+2-2
Original file line numberDiff line numberDiff line change
@@ -9338,7 +9338,7 @@
93389338
\begin{note}
93399339
The difference between \tcode{transform_exclusive_scan} and
93409340
\tcode{transform_inclusive_scan} is that \tcode{transform_exclusive_scan}
9341-
excludes the ith input element from the ith sum. If \tcode{binary_op} is not
9341+
excludes the $i^\text{th}$ input element from the $i^\text{th}$ sum. If \tcode{binary_op} is not
93429342
mathematically associative, the behavior of \tcode{transform_exclusive_scan}
93439343
may be nondeterministic. \tcode{transform_exclusive_scan} does not apply
93449344
\tcode{unary_op} to \tcode{init}.
@@ -9419,7 +9419,7 @@
94199419
\begin{note}
94209420
The difference between \tcode{transform_exclusive_scan} and
94219421
\tcode{transform_inclusive_scan} is that \tcode{transform_inclusive_scan}
9422-
includes the ith input element in the ith sum. If \tcode{binary_op} is not
9422+
includes the $i^\text{th}$ input element in the $i^\text{th}$ sum. If \tcode{binary_op} is not
94239423
mathematically associative, the behavior of \tcode{transform_inclusive_scan}
94249424
may be nondeterministic. \tcode{transform_inclusive_scan} does not apply
94259425
\tcode{unary_op} to \tcode{init}.

source/utilities.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -4190,7 +4190,7 @@
41904190

41914191
\pnum
41924192
In the descriptions that follow, let $i$ be in the range \range{0}{sizeof...(Types)},
4193-
and $\tcode{T}_i$ be the $i^{th}$ type in \tcode{Types...}.
4193+
and $\tcode{T}_i$ be the $i^\text{th}$ type in \tcode{Types...}.
41944194

41954195
\indexlibrary{\idxcode{variant}!constructor}%
41964196
\begin{itemdecl}

0 commit comments

Comments
 (0)