mt19937#
説明#
生成されたシーケンスの周期長 \(2^{19937} - 1\) を持つメルセンヌツイスター擬似乱数生成器 MT19937 [[Matsumoto98]]。
API#
構文#
namespace oneapi::mkl::rng {
class mt19937 {
public:
static constexpr std::uint32_t default_seed = 1;
mt19937(sycl::queue queue, std::uint32_t seed = default_seed);
mt19937(sycl::queue queue, std::initializer_list<std::uint32_t> seed);
mt19937(const mt19937& other);
mt19937(mt19937&& other);
mt19937& operator=(const mt19937& other);
mt19937& operator=(mt19937&& other);
~mt19937();
};
}サポートされるデバイス: CPU と GPU。
インクルード・ファイル#
oneapi/mkl/rng.hpp
入力パラメーター#
名前 |
タイプ |
説明 |
|---|---|---|
queue |
|
有効な |
seed |
|
エンジンの初期条件。 |
詳細については VS ノートを参照してください。