Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[oneMKL][RNG] Fixed some bugs for oneMKL RNG device API #525

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ class mcg31m1

mcg31m1();
mcg31m1(std::uint32_t seed, std::uint64_t offset = 0);
mcg31m1(std::initializer_list<std::uint32_t> seed, std::uint64_t offset = 0);
};
}

Expand All @@ -71,8 +70,6 @@ class mcg31m1
- Default constructor
* - `mcg31m1(std::uint32_t seed, std::uint64_t offset = 0)`_
- Constructor for common seed initialization of the engine and common number of skipped elements
* - `mcg31m1(std::initializer_list<std::uint32_t> seed, std::uint64_t offset = 0)`_
- Constructor for extended seed initialization of the engine and common number of skipped elements

.. container:: section

Expand Down Expand Up @@ -100,22 +97,5 @@ class mcg31m1

offset
Number of skipped elements.

.. _`mcg31m1(std::initializer_list<std::uint32_t> seed, std::uint64_t offset = 0)`:

.. code-block:: cpp

mcg31m1::mcg31m1(std::initializer_list<std::uint32_t> seed, std::uint64_t offset = 0)

.. container:: section

.. rubric:: Input Parameters

seed
The initial conditions of the generator state, assume :math:`x_0 = seed \ mod \ 0x7FFFFFFF`,
if :math:`x_0 = 0`, assume :math:`x_0 = 1`.

offset
Number of skipped elements.

**Parent topic:** :ref:`onemkl_device_rng_engines`
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ class mcg59
static constexpr std::int32_t vec_size = VecSize;

mcg59();
mcg59(std::uint32_t seed, std::uint64_t offset = 0);
mcg59(std::initializer_list<std::uint32_t> seed, std::uint64_t offset = 0);
mcg59(std::uint64_t seed, std::uint64_t offset = 0);
};
}

Expand All @@ -65,10 +64,8 @@ class mcg59
- Description
* - `mcg59()`_
- Default constructor
* - `mcg59(std::uint32_t seed, std::uint64_t offset = 0)`_
* - `mcg59(std::uint64_t seed, std::uint64_t offset = 0)`_
- Constructor for common seed initialization of the engine and common number of skipped elements
* - `mcg59(std::initializer_list<std::uint32_t> seed, std::uint64_t offset = 0)`_
- Constructor for extended seed initialization of the engine and common number of skipped elements

.. container:: section

Expand All @@ -80,28 +77,11 @@ class mcg59

mcg59::mcg59()

.. _`mcg59(std::uint32_t seed, std::uint64_t offset = 0)`:
.. _`mcg59(std::uint64_t seed, std::uint64_t offset = 0)`:

.. code-block:: cpp

mcg59::mcg59(std::uint32_t seed, std::uint64_t offset = 0)

.. container:: section

.. rubric:: Input Parameters

seed
The initial conditions of the generator state, assume :math:`x_0 = seed \ mod \ 2^{59}`,
if :math:`x_0 = 0`, assume :math:`x_0 = 1`.

offset
Number of skipped elements.

.. _`mcg59(std::initializer_list<std::uint32_t> seed, std::uint64_t offset = 0)`:

.. code-block:: cpp

mcg59::mcg59(std::initializer_list<std::uint32_t> seed, std::uint64_t offset = 0)
mcg59::mcg59(std::uint64_t seed, std::uint64_t offset = 0)

.. container:: section

Expand Down
Loading