std::experimental::simd_mask<T,Abi>::copy_from
From cppreference.com
< cpp | experimental | simd | simd mask
C++
Experimental
| Technical Specification | ||||
| 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) | ||||
| Experimental Non-TS | ||||
| Pattern Matching | ||||
| Linear Algebra | ||||
| std::execution | ||||
| Contracts | ||||
| 2D Graphics |
Extensions for parallelism v2
| Parallel exceptions | ||||
| Additional execution policies | ||||
| Algorithms | ||||
| Task blocks | ||||
| Data-parallel vectors | ||||
SIMD library
std::experimental::simd_mask
| Member functions | ||||||||||||
| ||||||||||||
| Non-member functions | ||||||||||||
| template<class Flags> void copy_from( const bool* mem, Flags flags ); |
(parallelism TS v2) | |
The load function replaces all elements of a simd_mask such that the i-th element is assigned with mem[i] for all i in the range of [0, size()).
[edit] Parameters
| mem | - | a pointer into an array where [mem, mem + size()) is a valid range
|
| flags | - | if of type vector_aligned_tag, the load constructor may assume mem to point to storage aligned by memory_alignment_v<simd_mask>
|
| Type requirements | ||
-is_simd_flag_type_v<Flags> must be true.
| ||
[edit] See also
| (parallelism TS v2) |
flag indicating alignment of the load/store address to element alignment (class) [edit] |
| (parallelism TS v2) |
flag indicating alignment of the load/store address to vector alignment (class) [edit] |
| (parallelism TS v2) |
flag indicating alignment of the load/store address to the specified alignment (class template) [edit] |
| (parallelism TS v2) |
obtains an appropriate alignment for vector_aligned (class template) [edit] |
| (parallelism TS v2) |
constructs a simd_mask object (public member function) [edit] |
| (parallelism TS v2) |
stores simd_mask elements to contiguous memory (public member function) [edit] |
| (parallelism TS v2) |
loads simd elements from contiguous memory (public member function of std::experimental::simd<T,Abi>) [edit]
|