dune-common 2.12-git
Loading...
Searching...
No Matches
Dune::Simd::VcImpl::Proxy< V > Class Template Reference

A reference-like proxy for elements of Vc vectors and masks. More...

#include <dune/common/simd/vc.hh>

Inheritance diagram for Dune::Simd::VcImpl::Proxy< V >:
Inheritance graph

Public Types

using value_type = typename Base::value_type
 

Public Member Functions

DUNE_SIMD_VC_BINARY * DUNE_SIMD_VC_BINARY (/);DUNE_SIMD_VC_BINARY(%
 
 DUNE_SIMD_VC_BINARY (+)
 
 DUNE_SIMD_VC_BINARY (-)
 
 DUNE_SIMD_VC_BINARY (<<)
 
 DUNE_SIMD_VC_BINARY (> >)
 
DUNE_SIMD_VC_BINARY & DUNE_SIMD_VC_BINARY (^);DUNE_SIMD_VC_BINARY(|
 
 DUNE_SIMD_VC_BINARY (<)
 
 DUNE_SIMD_VC_BINARY (>)
 
 DUNE_SIMD_VC_BINARY (<=)
 
 DUNE_SIMD_VC_BINARY (>=)
 
 DUNE_SIMD_VC_BINARY (==)
 
 DUNE_SIMD_VC_BINARY (!=)
 
template<class T , class Abi , class = std::enable_if_t<std::is_convertible<value_type, T>::value>>
 operator Vc::Vector< T, Abi > () &&
 
template<class T , std::size_t n, class Vec , std::size_t m, class = std::enable_if_t<std::is_convertible<value_type, T>::value>>
 operator Vc::SimdArray< T, n, Vec, m > () &&
 
DUNE_SIMD_VC_ASSIGN * DUNE_SIMD_VC_ASSIGN (/=);DUNE_SIMD_VC_ASSIGN(%=
 
 DUNE_SIMD_VC_ASSIGN (+=)
 
 DUNE_SIMD_VC_ASSIGN (-=)
 
DUNE_SIMD_VC_ASSIGN & DUNE_SIMD_VC_ASSIGN (^=);DUNE_SIMD_VC_ASSIGN(|=
 
 DUNE_SIMD_VC_ASSIGN (<<=)
 
 DUNE_SIMD_VC_ASSIGN (> >=)
 

Detailed Description

template<class V>
class Dune::Simd::VcImpl::Proxy< V >

A reference-like proxy for elements of Vc vectors and masks.

Vc's lane-access operation returns a proxy that cannot be copied or moved by non-Vc code, so it cannot be returned from lane(). This class derives from the generic Impl::ValueProxy and adds the operators with Vc vector types.

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 Vc operators return masks, see dune-common#439. The proxy is derived from ValueProxy, and not passed to it as the ExtraOperations base, so that the members have the proxy as their object type and not a base class (which would lose against the generic operators of ValueProxy).

Member Typedef Documentation

◆ value_type

template<class V >
using Dune::Simd::VcImpl::Proxy< V >::value_type = typename Base::value_type

Member Function Documentation

◆ DUNE_SIMD_VC_ASSIGN() [1/6]

template<class V >
Dune::Simd::VcImpl::Proxy< V >::DUNE_SIMD_VC_ASSIGN ( +  )

◆ DUNE_SIMD_VC_ASSIGN() [2/6]

template<class V >
Dune::Simd::VcImpl::Proxy< V >::DUNE_SIMD_VC_ASSIGN ( -  )

◆ DUNE_SIMD_VC_ASSIGN() [3/6]

template<class V >
DUNE_SIMD_VC_ASSIGN * Dune::Simd::VcImpl::Proxy< V >::DUNE_SIMD_VC_ASSIGN ( /  )

◆ DUNE_SIMD_VC_ASSIGN() [4/6]

template<class V >
Dune::Simd::VcImpl::Proxy< V >::DUNE_SIMD_VC_ASSIGN ( <<  )

◆ DUNE_SIMD_VC_ASSIGN() [5/6]

template<class V >
Dune::Simd::VcImpl::Proxy< V >::DUNE_SIMD_VC_ASSIGN ( >=  )

◆ DUNE_SIMD_VC_ASSIGN() [6/6]

template<class V >
DUNE_SIMD_VC_ASSIGN & Dune::Simd::VcImpl::Proxy< V >::DUNE_SIMD_VC_ASSIGN ( ^  )

◆ DUNE_SIMD_VC_BINARY() [1/12]

template<class V >
Dune::Simd::VcImpl::Proxy< V >::DUNE_SIMD_VC_BINARY ( !  )

◆ DUNE_SIMD_VC_BINARY() [2/12]

template<class V >
Dune::Simd::VcImpl::Proxy< V >::DUNE_SIMD_VC_BINARY ( +  )

◆ DUNE_SIMD_VC_BINARY() [3/12]

template<class V >
Dune::Simd::VcImpl::Proxy< V >::DUNE_SIMD_VC_BINARY ( -  )

◆ DUNE_SIMD_VC_BINARY() [4/12]

template<class V >
DUNE_SIMD_VC_BINARY * Dune::Simd::VcImpl::Proxy< V >::DUNE_SIMD_VC_BINARY ( /  )

◆ DUNE_SIMD_VC_BINARY() [5/12]

template<class V >
Dune::Simd::VcImpl::Proxy< V >::DUNE_SIMD_VC_BINARY ( )

◆ DUNE_SIMD_VC_BINARY() [6/12]

template<class V >
Dune::Simd::VcImpl::Proxy< V >::DUNE_SIMD_VC_BINARY ( <<  )

◆ DUNE_SIMD_VC_BINARY() [7/12]

template<class V >
Dune::Simd::VcImpl::Proxy< V >::DUNE_SIMD_VC_BINARY ( <=  )

◆ DUNE_SIMD_VC_BINARY() [8/12]

template<class V >
Dune::Simd::VcImpl::Proxy< V >::DUNE_SIMD_VC_BINARY ( )

◆ DUNE_SIMD_VC_BINARY() [9/12]

template<class V >
Dune::Simd::VcImpl::Proxy< V >::DUNE_SIMD_VC_BINARY ( )

◆ DUNE_SIMD_VC_BINARY() [10/12]

template<class V >
Dune::Simd::VcImpl::Proxy< V >::DUNE_SIMD_VC_BINARY ( )

◆ DUNE_SIMD_VC_BINARY() [11/12]

template<class V >
Dune::Simd::VcImpl::Proxy< V >::DUNE_SIMD_VC_BINARY ( >=  )

◆ DUNE_SIMD_VC_BINARY() [12/12]

template<class V >
DUNE_SIMD_VC_BINARY & Dune::Simd::VcImpl::Proxy< V >::DUNE_SIMD_VC_BINARY ( ^  )

◆ operator Vc::SimdArray< T, n, Vec, m >()

template<class V >
template<class T , std::size_t n, class Vec , std::size_t m, class = std::enable_if_t<std::is_convertible<value_type, T>::value>>
Dune::Simd::VcImpl::Proxy< V >::operator Vc::SimdArray< T, n, Vec, m > ( ) &&
inline

◆ operator Vc::Vector< T, Abi >()

template<class V >
template<class T , class Abi , class = std::enable_if_t<std::is_convertible<value_type, T>::value>>
Dune::Simd::VcImpl::Proxy< V >::operator Vc::Vector< T, Abi > ( ) &&
inline

The documentation for this class was generated from the following file: