std::experimental::simd(3)
std::experimental::simd(3) π
Manual name folded in near the top: C++ Standard Libary (typo and all β thatβs literally the manual name from the header, bestie). This page is all about std::experimental::simd, and itβs giving highkey iconic data-parallel energy. π«Ά
NAME
std::experimental::simd β std::experimental::simd
Synopsis
Defined in header <experimental/simd> β¨
template< class T, class Abi = simd_abi::compatible<T> >
(parallelism TS v2)
class simd;
The class template simd is a data-parallel type. The width of a given simd instantiation is a constant expression, determined by the template parameters.
An ABI tag is a type in the simd_abi namespace that indicates a choice of size and binary representation for objects of data-parallel type.
Template parameters
Tβ element type; an arithmetic type other thanboolAbiβ tag type used to determine the number of elements and storage
Helper alias templates
template< class T, int N >
using fixed_size_simd = std::experimental::simd<T,
std::experimental::simd_abi::fixed_size<N>>;
template< class T >
using native_simd = std::experimental::simd<T,
std::experimental::simd_abi::native<T>>;
Member types
value_typeβTreferenceβ implementation-definedmask_typeβsimd_mask<T, Abi>abi_typeβAbi
Member functions
constructorβ constructs asimdobject (parallelism TS v2) (public member function)copy_fromβ loadssimdelements from contiguous memory (parallelism TS v2) (public member function)copy_toβ storessimdelements to contiguous memory (parallelism TS v2) (public member function)operator[]β accesses specified element (parallelism TS v2) (public member function)operator++,operator--β element-wise increment and decrement (parallelism TS v2) (public member function)operator!,operator~,operator+,operator-β element-wise unary operators (parallelism TS v2) (public member function)sizeβ returns the width / number of elements[static](parallelism TS v2) (public static member function)
Non-member functions
operator+,operator-,operator*,operator/,operator%,operator&,operator|,operator^,operator<<,operator>>β element-wise binary operators (function) (parallelism TS v2)operator+=,operator-=,operator*=,operator/=,operator%=,operator&=,operator|=,operator^=,operator<<=,operator>>=β element-wise compound binary operators (function) (parallelism TS v2)operator==,operator!=,operator>=,operator<=,operator>,operator<β element-wise relational operators (function) (parallelism TS v2)
Example
This section is incomplete.
Reason: no example.
(Not me leaving you on read β thatβs literally what the page says π)
See also
simd_maskβ data-parallel type with the element typebool(parallelism TS v2) (class template)valarrayβ numeric arrays, array masks and array slices (class template)
Category
- Todo no example
Source/version: http://cppreference.com Β· date: 2024.06.10 Β· page: std::experimental::simd(3) β bye bestie, go slay your data-parallel era πβ¨
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms