Dune Core Modules (2.9.1)

Dune::Simd::VcImpl::Proxy< V > Class Template Reference

A reference-like proxy for elements of random-access vectors. More...

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

Detailed Description

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

A reference-like proxy for elements of random-access vectors.

This is necessary because Vc's lane-access operation return a proxy that cannot constructed by non-Vc code (i.e. code that isn't explicitly declared friend). This means in particular that there is no copy/move constructor, meaning we cannot return such proxies from our own functions, such as lane(). To work around this, we define our own proxy class which internally holds a reference to the vector and a lane index.

Note: this should be unnecessary with C++17, as just returning a temporary object should not involve copying it.


The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 21, 23:30, 2024)