Namespaces
Variants
Actions

std::experimental::const_where_expression

From cppreference.com
< cpp‎ | experimental‎ | simd
 
C++
 
Extensions for parallelism v2
 
SIMD library
 
std::experimental::const_where_expression
Defined in header <experimental/simd>
template< class M, class V >
class const_where_expression;
(parallelism TS v2)

The class template const_where_expression abstracts the notion of selected elements of a given const object of arithmetic or data-parallel type. Selected elements signifies the elements data[i] for all i ∈ { j ∈ ℕ | j < M::size() ⋀ mask[j] }.

[edit] Template parameters

M - The mask type
V - The value type M applies on

Valid combinations of (M, V) are: (simd_mask<T, Abi>, const simd<T, Abi>), (simd_mask<T, Abi>, const simd_mask<T, Abi>), (bool, const T).

[edit] Member functions

unary operators
(public member function)
stores selected elements to address
(public member function)

[edit] Example

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant