File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ Operations on vector types can be either:
177
177
For example, ` a.sum() ` adds the elements of a vector together while ` a.hmax() `
178
178
returns the largest element in a vector. These operations (typically)
179
179
translate to a sequence of multiple SIMD instructions on most architectures
180
- and are therefore slower. In many cases, they are, however, necessary.
180
+ and are therefore slower. In many cases, they are, however, necessary.
181
181
182
182
## Example: Average
183
183
@@ -655,6 +655,15 @@ pub fn hmin(self) -> element_type;
655
655
}
656
656
```
657
657
658
+ Note: In this RFC, horizontal reductions are named according to the operation
659
+ they perform. When this name clashes with that of a vertical operation, the
660
+ horizontal reduction's name get's a ` h ` -prefix. In this case, the horizontal
661
+ ` max ` and ` min ` reductions clash with the vertical ` a.max(b) ` operation, and
662
+ therefore get a ` h ` -prefix.
663
+
664
+ An alternative would be to prefix all horizontal operations with, for example,
665
+ the ` h_ ` -prefix.
666
+
658
667
#### Mask construction and element access
659
668
660
669
``` rust
You can’t perform that action at this time.
0 commit comments