wichmann_hill#

説明#

NAG Numerical Libraries [NAG] の Wichmann-Hill 疑似乱数生成器 (273 個の基本生成器のセット)。

API#

構文#

namespace oneapi::mkl::rng { 
  class wichmann_hill { 
  public: 
    static constexpr std::uint32_t default_seed = 1; 

    wichmann_hill(sycl::queue queue, std::uint32_t seed = default_seed); 
    wichmann_hill(sycl::queue queue, std::uint32_t seed, std::uint32_t engine_idx); 
    wichmann_hill(sycl::queue queue, std::initializer_list<std::uint32_t> seed); 
    wichmann_hill(sycl::queue queue, std::initializer_list<std::uint32_t> seed, std::uint32_t engine_idx); wichmann_hill(const wichmann_hill& other); 
    wichmann_hill(wichmann_hill&& other); 
    wichmann_hill& operator=(const wichmann_hill& other); 
    wichmann_hill& operator=(wichmann_hill&& other); 
    ~wichmann_hill(); 
  }; 
}

サポートされるデバイス: CPU

インクルード・ファイル#

  • oneapi/mkl/rng.hpp

入力パラメーター#

名前

タイプ

説明

queue

sycl::queue

有効な sycl::queueoneapi::mkl::rng::generate() ルーチンの呼び出しにより、カーネルがこのキューに送信されます。

seed

std::uint32_t std::initializer_list<std::uint32_t>

エンジンの初期条件。

engine_idx

std::uint32_t

セットからのエンジンのインデックス (セットには 273 個の基本生成器が含まれています)

この詳細については VS ノートを参照してください。