std::experi...::simd_mask(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

🌸 NAME 🌸

okay bestie, welcome to std::experimental::simd_mask β€” aka the std::experi...::simd_mask(3) page from the C++ Standard Libary manual. it’s giving data-parallel bool realness πŸ’…


✨ Synopsis ✨

Defined in header <experimental/simd>:

template< class T, class Abi = simd_abi::compatible<T> >
(parallelism TS v2)
   class simd_mask;

the class template simd_mask is a data-parallel type with the element type bool. the width of a given simd_mask instantiation is a constant expression, determined by the template parameters. specifically, simd_mask<T, Abi>::size() is always simd<T, Abi>::size(). periodt. ✨


πŸ’– Template parameters πŸ’–

  • T β€” the element type simd_mask applies on
  • Abi β€” the ABI type simd_mask applies on

🧚 Helper alias templates 🧚

  • template< class T, int N > using fixed_size_simd_mask β€” definition: simd_mask<T, simd_abi::fixed_size<N>>
  • template< class T > using native_simd_mask β€” definition: simd_mask<T, simd_abi::native<T>>

πŸŽ€ Member types πŸŽ€

  • value_type β€” bool
  • reference β€” implementation-defined
  • simd_type β€” simd<T, Abi>
  • abi_type β€” Abi

πŸ¦‹ Member functions πŸ¦‹

  • constructor β€” constructs a simd_mask object (parallelism TS v2) (public member function)
  • copy_from β€” loads simd_mask elements from contiguous memory (parallelism TS v2) (public member function)
  • copy_to β€” stores simd_mask elements to contiguous memory (parallelism TS v2) (public member function)
  • operator[] β€” accesses specified element (parallelism TS v2) (public member function)
  • operator! β€” negates each element (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|| β€” element-wise logic operators (function) (parallelism TS v2)
  • operator&, operator|, operator^ β€” element-wise bitwise operators (function) (parallelism TS v2)
  • operator&=, operator|=, operator^= β€” element-wise compound operators (function) (parallelism TS v2)
  • operator==, operator!= β€” element-wise relation operators (function) (parallelism TS v2)

πŸ“ Example πŸ“

This section is incomplete Reason: no example

no example bestie 😭 but the reason is literally right there.


πŸ’œ See also πŸ’œ

  • simd β€” data-parallel vector type (parallelism TS v2) (class template)
  • mask_array β€” proxy to a subset of a valarray after applying a boolean mask operator[] (class template)

⭐ Category ⭐

  • Todo no example

Source/version/date: http://cppreference.com Β· 2024.06.10 β€” bye bestie, go slay those masks πŸ’…πŸ’–βœ¨

πŸ“¦ where this page comes from