Skip to content

Commit 8f4b39f

Browse files
Review feedback
Co-authored-by: David Justo <[email protected]>
1 parent 053dac2 commit 8f4b39f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/standard-library/vectorized-stl-algorithms.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,14 @@ In addition to algorithms, the macro controls the manual vectorization of:
7474

7575
## Manually vectorized algorithms for floating point types
7676

77-
Vectorization of floating point types is connected with extra difficulties:
77+
Vectorization of floating point types comes with extra difficulties:
7878
- Vectorization may reorder operations, which can affect the precision of floating point results.
79-
- Floating point types may contain NaN values, which don't behave transitively while comparing.
79+
- Floating point types may contain `NaN` values, which don't behave transitively on comparisons.
8080
- Floating point operations may raise exceptions.
8181

8282
The STL deals with the first two difficulties safely. Only `max_element`, `min_element`, `minmax_element`, `max`, `min`, `minmax`, `is_sorted`, and `is_sorted_until` are manually vectorized. These algorithms:
8383
- Do not compute new floating point values, only compare the existing values, so different order does not affect precision.
84-
- As sorting algorithms, require transitivity of comparisons, so NaNs are not allowed as elements.
84+
- Because they are sorting algorithms, `NaNs` are not allowed amongst the operands.
8585

8686
There's `_USE_STD_VECTOR_FLOATING_ALGORITHMS` to control the use of these vectorized algorithms for floating point types. Set it to 0 to disable the vectorization. The macro has no effect if `_USE_STD_VECTOR_ALGORITHMS` is set to 0.
8787

0 commit comments

Comments
 (0)