|
dune-common 2.12-git
|
A reference-like proxy for lanes of std::experimental::simd types.
More...
#include <dune/common/simd/stdsimd.hh>

Public Types | |
| using | value_type = typename Base::value_type |
Public Member Functions | |
| DUNE_SIMD_STDSIMD_BINARY * | DUNE_SIMD_STDSIMD_BINARY (/);DUNE_SIMD_STDSIMD_BINARY(% |
| DUNE_SIMD_STDSIMD_BINARY (+) | |
| DUNE_SIMD_STDSIMD_BINARY (-) | |
| DUNE_SIMD_STDSIMD_BINARY (<<) | |
| DUNE_SIMD_STDSIMD_BINARY (> >) | |
| DUNE_SIMD_STDSIMD_BINARY & | DUNE_SIMD_STDSIMD_BINARY (^);DUNE_SIMD_STDSIMD_BINARY(| |
| DUNE_SIMD_STDSIMD_BINARY (<) | |
| DUNE_SIMD_STDSIMD_BINARY (>) | |
| DUNE_SIMD_STDSIMD_BINARY (<=) | |
| DUNE_SIMD_STDSIMD_BINARY (>=) | |
| DUNE_SIMD_STDSIMD_BINARY (==) | |
| DUNE_SIMD_STDSIMD_BINARY (!=) | |
| DUNE_SIMD_STDSIMD_ASSIGN * | DUNE_SIMD_STDSIMD_ASSIGN (/=);DUNE_SIMD_STDSIMD_ASSIGN(%= |
| DUNE_SIMD_STDSIMD_ASSIGN (+=) | |
| DUNE_SIMD_STDSIMD_ASSIGN (-=) | |
| DUNE_SIMD_STDSIMD_ASSIGN & | DUNE_SIMD_STDSIMD_ASSIGN (^=);DUNE_SIMD_STDSIMD_ASSIGN(|= |
| DUNE_SIMD_STDSIMD_ASSIGN (<<=) | |
| DUNE_SIMD_STDSIMD_ASSIGN (> >=) | |
Detailed Description
class Dune::Simd::StdSimdImpl::Proxy< V >
A reference-like proxy for lanes of std::experimental::simd types.
Derived from the generic lane proxy Impl::ValueProxy, with the operations with std::experimental::simd types added.
The library's vectors broadcast from anything that converts to their scalar type, including the proxy. For operations with a vector of another scalar type this can make the library's operators ambiguous, e.g. for w << lane(l, v) with w of type simd<int> and v of type simd<unsigned>. These overloads match exactly and do the operation with the scalar, so the proxy behaves like the scalar it represents.
The operators with the proxy on the left are member functions, not friends: with two friends mirroring each other (vector == proxy and proxy == vector), Clang up to 17 selects the reversed candidate for vector == proxy, and rejects it since the result of a rewritten operator== must be bool but the operators of the library return masks, see dune-common#439. They must be members of the final proxy class: members of a base class would need a derived-to-base conversion of the proxy and lose against the generic operators of ValueProxy.
Member Typedef Documentation
◆ value_type
| using Dune::Simd::StdSimdImpl::Proxy< V >::value_type = typename Base::value_type |
Member Function Documentation
◆ DUNE_SIMD_STDSIMD_ASSIGN() [1/6]
| Dune::Simd::StdSimdImpl::Proxy< V >::DUNE_SIMD_STDSIMD_ASSIGN | ( | + | ) |
◆ DUNE_SIMD_STDSIMD_ASSIGN() [2/6]
| Dune::Simd::StdSimdImpl::Proxy< V >::DUNE_SIMD_STDSIMD_ASSIGN | ( | - | ) |
◆ DUNE_SIMD_STDSIMD_ASSIGN() [3/6]
| DUNE_SIMD_STDSIMD_ASSIGN * Dune::Simd::StdSimdImpl::Proxy< V >::DUNE_SIMD_STDSIMD_ASSIGN | ( | / | ) |
◆ DUNE_SIMD_STDSIMD_ASSIGN() [4/6]
| Dune::Simd::StdSimdImpl::Proxy< V >::DUNE_SIMD_STDSIMD_ASSIGN | ( | << | ) |
◆ DUNE_SIMD_STDSIMD_ASSIGN() [5/6]
| Dune::Simd::StdSimdImpl::Proxy< V >::DUNE_SIMD_STDSIMD_ASSIGN | ( | >= | ) |
◆ DUNE_SIMD_STDSIMD_ASSIGN() [6/6]
| DUNE_SIMD_STDSIMD_ASSIGN & Dune::Simd::StdSimdImpl::Proxy< V >::DUNE_SIMD_STDSIMD_ASSIGN | ( | ^ | ) |
◆ DUNE_SIMD_STDSIMD_BINARY() [1/12]
| Dune::Simd::StdSimdImpl::Proxy< V >::DUNE_SIMD_STDSIMD_BINARY | ( | ! | ) |
◆ DUNE_SIMD_STDSIMD_BINARY() [2/12]
| Dune::Simd::StdSimdImpl::Proxy< V >::DUNE_SIMD_STDSIMD_BINARY | ( | + | ) |
◆ DUNE_SIMD_STDSIMD_BINARY() [3/12]
| Dune::Simd::StdSimdImpl::Proxy< V >::DUNE_SIMD_STDSIMD_BINARY | ( | - | ) |
◆ DUNE_SIMD_STDSIMD_BINARY() [4/12]
| DUNE_SIMD_STDSIMD_BINARY * Dune::Simd::StdSimdImpl::Proxy< V >::DUNE_SIMD_STDSIMD_BINARY | ( | / | ) |
◆ DUNE_SIMD_STDSIMD_BINARY() [5/12]
| Dune::Simd::StdSimdImpl::Proxy< V >::DUNE_SIMD_STDSIMD_BINARY | ( | ) |
◆ DUNE_SIMD_STDSIMD_BINARY() [6/12]
| Dune::Simd::StdSimdImpl::Proxy< V >::DUNE_SIMD_STDSIMD_BINARY | ( | << | ) |
◆ DUNE_SIMD_STDSIMD_BINARY() [7/12]
| Dune::Simd::StdSimdImpl::Proxy< V >::DUNE_SIMD_STDSIMD_BINARY | ( | <= | ) |
◆ DUNE_SIMD_STDSIMD_BINARY() [8/12]
| Dune::Simd::StdSimdImpl::Proxy< V >::DUNE_SIMD_STDSIMD_BINARY | ( | ) |
◆ DUNE_SIMD_STDSIMD_BINARY() [9/12]
| Dune::Simd::StdSimdImpl::Proxy< V >::DUNE_SIMD_STDSIMD_BINARY | ( | ) |
◆ DUNE_SIMD_STDSIMD_BINARY() [10/12]
| Dune::Simd::StdSimdImpl::Proxy< V >::DUNE_SIMD_STDSIMD_BINARY | ( | ) |
◆ DUNE_SIMD_STDSIMD_BINARY() [11/12]
| Dune::Simd::StdSimdImpl::Proxy< V >::DUNE_SIMD_STDSIMD_BINARY | ( | >= | ) |
◆ DUNE_SIMD_STDSIMD_BINARY() [12/12]
| DUNE_SIMD_STDSIMD_BINARY & Dune::Simd::StdSimdImpl::Proxy< V >::DUNE_SIMD_STDSIMD_BINARY | ( | ^ | ) |
The documentation for this class was generated from the following file:
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8