Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::experimental::minmax

      From cppreference.com
      <cpp‎ |experimental‎ |simd
       
       
       
       
       
      Defined in header<experimental/simd>
      template<class T,class Abi>

      std::pair<simd<T, Abi>, simd<T, Abi>>

      minmax(const simd<T, Abi>& a,const simd<T, Abi>& b)noexcept;
      (parallelism TS v2)

      Returns both the element-wise min result and element-wise max result.

      Contents

      [edit]Parameters

      a - the first vector of elements forminmax
      b - the second vector of elements forminmax

      [edit]Return value

      An objectr, where theith element ofr.first isstd::min(a[i], b[i]), and theith element ofr.second isstd::max(a[i], b[i]).

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]See also

      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/experimental/simd/minmax&oldid=161486"

      [8]ページ先頭

      ©2009-2025 Movatter.jp