Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::experimental::simd

      From cppreference.com
      <cpp‎ |experimental‎ |simd
       
       
       
       
       
       
      Defined in header<experimental/simd>
      template<class T,class Abi= simd_abi::compatible<T>>
      class simd;
      (parallelism TS v2)

      The class templatesimd is a data-parallel type. The width of a givensimd instantiation is a constant expression, determined by the template parameters.

      An ABI tag is a type in thesimd_abi namespace that indicates a choice of size and binary representation for objects of data-parallel type.

      Contents

      [edit]Template parameters

      T - element type; an arithmetic type other thanbool
      Abi - tag type used to determine the number of elements and storage

      [edit]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>>;

      [edit]Member types

      Member type Definition
      value_typeT
      reference implementation-defined
      mask_typesimd_mask<T, Abi>
      abi_typeAbi

      [edit]Member functions

      (parallelism TS v2)
      constructs asimd object
      (public member function)[edit]
      (parallelism TS v2)
      loadssimd elements from contiguous memory
      (public member function)[edit]
      (parallelism TS v2)
      storessimd elements to contiguous memory
      (public member function)[edit]
      (parallelism TS v2)
      accesses specified element
      (public member function)[edit]
      (parallelism TS v2)
      element-wise increment and decrement
      (public member function)[edit]
      element-wise unary operators
      (public member function)[edit]
      [static](parallelism TS v2)
      returns the width / number of elements
      (public static member function)[edit]

      [edit]Non-member functions

      element-wise binary operators
      (function)[edit]
      element-wise compound binary operators
      (function)[edit]
      element-wise relational operators
      (function)[edit]

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]See also

      (parallelism TS v2)
      data-parallel type with the element type bool
      (class template)[edit]
      numeric arrays, array masks and array slices
      (class template)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/experimental/simd/simd&oldid=161477"

      [8]ページ先頭

      ©2009-2025 Movatter.jp