std::experimental::simd<T,Abi>::operator+,-,*,/,%,&,|,^,<<,>>
From cppreference.com
< cpp | experimental | simd | simd
C++
Experimental
| Technical Specification | ||||
| Filesystem library (filesystem TS) | ||||
| Library fundamentals (library fundamentals TS) | ||||
| Library fundamentals 2 (library fundamentals TS v2) | ||||
| Library fundamentals 3 (library fundamentals TS v3) | ||||
| Extensions for parallelism (parallelism TS) | ||||
| Extensions for parallelism 2 (parallelism TS v2) | ||||
| Extensions for concurrency (concurrency TS) | ||||
| Extensions for concurrency 2 (concurrency TS v2) | ||||
| Concepts (concepts TS) | ||||
| Ranges (ranges TS) | ||||
| Reflection (reflection TS) | ||||
| Mathematical special functions (special functions TR) | ||||
| Experimental Non-TS | ||||
| Pattern Matching | ||||
| Linear Algebra | ||||
| std::execution | ||||
| Contracts | ||||
| 2D Graphics |
Extensions for parallelism v2
| Parallel exceptions | ||||
| Additional execution policies | ||||
| Algorithms | ||||
| Task blocks | ||||
| Data-parallel vectors | ||||
SIMD library
std::experimental::simd
| Member functions | |||||||
| Non-member functions | |||||||
| |||||||
| friend simd operator+( const simd& lhs, const simd& rhs ) noexcept; |
(1) | (parallelism TS v2) |
| friend simd operator-( const simd& lhs, const simd& rhs ) noexcept; |
(2) | (parallelism TS v2) |
| friend simd operator*( const simd& lhs, const simd& rhs ) noexcept; |
(3) | (parallelism TS v2) |
| friend simd operator/( const simd& lhs, const simd& rhs ) noexcept; |
(4) | (parallelism TS v2) |
| friend simd operator%( const simd& lhs, const simd& rhs ) noexcept; |
(5) | (parallelism TS v2) |
| friend simd operator&( const simd& lhs, const simd& rhs ) noexcept; |
(6) | (parallelism TS v2) |
| friend simd operator|( const simd& lhs, const simd& rhs ) noexcept; |
(7) | (parallelism TS v2) |
| friend simd operator^( const simd& lhs, const simd& rhs ) noexcept; |
(8) | (parallelism TS v2) |
| friend simd operator<<( const simd& lhs, const simd& rhs ) noexcept; |
(9) | (parallelism TS v2) |
| friend simd operator<<( const simd& lhs, int n ) noexcept; |
(10) | (parallelism TS v2) |
| friend simd operator>>( const simd& lhs, const simd& rhs ) noexcept; |
(11) | (parallelism TS v2) |
| friend simd operator>>( const simd& lhs, int n ) noexcept; |
(12) | (parallelism TS v2) |
Applies the given binary operator element-wise to each corresponding element of the operands. Returns a simd such that for all i in the range of [0, size()) the ith element is equal to:
1) lhs[i] + rhs[i]
2) lhs[i] - rhs[i]
3) lhs[i] * rhs[i]
4) lhs[i] / rhs[i]
5) lhs[i] % rhs[i]
6) lhs[i] & rhs[i]
7) lhs[i] | rhs[i]
8) lhs[i] ^ rhs[i]
9) lhs[i] << rhs[i]
10) lhs[i] << n
11) lhs[i] >> rhs[i]
12) lhs[i] >> n
Contents |
[edit] Parameters
| lhs | - | left operands |
| rhs | - | right operands |
| n | - | number of bits to shift each element in lhs |
[edit] Return value
A simd as described above.
[edit] Example
| This section is incomplete Reason: no example |
[edit] See also
| element-wise compound binary operators (function) [edit] |