std::experimental::split, split_by
From cppreference.com
< cpp | experimental | simd
C++
Feature test macros (C++20)
Concepts library (C++20)
Metaprogramming library (C++11)
Ranges library (C++20)
Filesystem library (C++17)
Concurrency support library (C++11)
Execution control library (C++26)
Experimental
Filesystem library (filesystem TS)
Library fundamentals (library fundamentals TS)
Library fundamentals 2 (library fundamentals TS v2)
Library fundamentals 3 (library fundamentals TS v3)
Extensions for parallelism (parallelism TS)
Extensions for parallelism 2 (parallelism TS v2)
Extensions for concurrency (concurrency TS)
Extensions for concurrency 2 (concurrency TS v2)
Concepts (concepts TS)
Ranges (ranges TS)
Reflection (reflection TS)
Mathematical special functions (special functions TR)
Extensions for parallelism v2
Parallel exceptions
Additional execution policies
Algorithms
Task blocks
Defined in header
<experimental/simd>
template< std::size_t... Sizes, class T, class Abi >
(1)
(parallelism TS v2)
std::tuple <simd<T, simd_abi::deduce_t<T, Sizes>>...>
template< std::size_t... Sizes, class T, class Abi >
(2)
(parallelism TS v2)
std::tuple <simd_mask<T, simd_abi::deduce_t<T, Sizes>>...>
template< class V, class Abi >
(3)
(parallelism TS v2)
std::array <V, simd_size_v<typename V::value_type, Abi> / V::size()>
template< class V, class Abi >
(4)
(parallelism TS v2)
std::array <V, simd_size_v<typename V::value_type, Abi> / V::size()>
template< size_t N, class T, class A >
(5)
(parallelism TS v2)
array<resize_simd<simd_size_v<T, A> / N, simd<T, A>>, N>
template< size_t N, class T, class A >
(6)
(parallelism TS v2)
array<resize_simd<simd_size_v<T, A> / N, simd_mask<T, A>>, N>
Splits the input simd
or simd_mask
object into multiple simd
or simd_mask
objects.
1,2) Split the input object into potentially different types (e.g. types with different sizes) of objects. These functions do not participate in overloading resolution unless Sizes... sum up to v.size().
3,4) Split the input object into an array of objects. These functions do not participate in overloading resolution unless
- The array element must be of type
simd
orsimd_mask
, for the type of v assimd
orsimd_mask
, respectively. - simd_size_v<typename V::value_type, Abi> is an integral multiple of V::size().
5,6) Split the input object into an array of objects. These functions shall not participate in overload resolution unless simd_size_v<T, A> is an integral multiple of
N
.[edit] Parameters
v
-
the input
simd
or simd_mask
object
[edit] Return value
1,2) A tuple that contains the splitted
simd
or simd_mask
objects.3-6) An array that contains the splitted
simd
or simd_mask
objects.[edit] Example
This section is incomplete
Reason: no example
Reason: no example