Skip to content

Commit

Permalink
bug fix for device api (#525)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreyfe1 committed May 28, 2024
1 parent 615d76f commit 7ec18a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 44 deletions.
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

0 comments on commit 7ec18a7

Please sign in to comment.