Skip to content

Commit 7ec18a7

Browse files
authored
bug fix for device api (#525)
1 parent 615d76f commit 7ec18a7

2 files changed

Lines changed: 4 additions & 44 deletions

File tree

source/elements/oneMKL/source/domains/rng/device_api/device-rng-mcg31m1.rst

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ class mcg31m1
4545
4646
mcg31m1();
4747
mcg31m1(std::uint32_t seed, std::uint64_t offset = 0);
48-
mcg31m1(std::initializer_list<std::uint32_t> seed, std::uint64_t offset = 0);
4948
};
5049
}
5150
@@ -71,8 +70,6 @@ class mcg31m1
7170
- Default constructor
7271
* - `mcg31m1(std::uint32_t seed, std::uint64_t offset = 0)`_
7372
- Constructor for common seed initialization of the engine and common number of skipped elements
74-
* - `mcg31m1(std::initializer_list<std::uint32_t> seed, std::uint64_t offset = 0)`_
75-
- Constructor for extended seed initialization of the engine and common number of skipped elements
7673

7774
.. container:: section
7875

@@ -100,22 +97,5 @@ class mcg31m1
10097

10198
offset
10299
Number of skipped elements.
103-
104-
.. _`mcg31m1(std::initializer_list<std::uint32_t> seed, std::uint64_t offset = 0)`:
105-
106-
.. code-block:: cpp
107-
108-
mcg31m1::mcg31m1(std::initializer_list<std::uint32_t> seed, std::uint64_t offset = 0)
109-
110-
.. container:: section
111-
112-
.. rubric:: Input Parameters
113-
114-
seed
115-
The initial conditions of the generator state, assume :math:`x_0 = seed \ mod \ 0x7FFFFFFF`,
116-
if :math:`x_0 = 0`, assume :math:`x_0 = 1`.
117-
118-
offset
119-
Number of skipped elements.
120100

121101
**Parent topic:** :ref:`onemkl_device_rng_engines`

source/elements/oneMKL/source/domains/rng/device_api/device-rng-mcg59.rst

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ class mcg59
4040
static constexpr std::int32_t vec_size = VecSize;
4141
4242
mcg59();
43-
mcg59(std::uint32_t seed, std::uint64_t offset = 0);
44-
mcg59(std::initializer_list<std::uint32_t> seed, std::uint64_t offset = 0);
43+
mcg59(std::uint64_t seed, std::uint64_t offset = 0);
4544
};
4645
}
4746
@@ -65,10 +64,8 @@ class mcg59
6564
- Description
6665
* - `mcg59()`_
6766
- Default constructor
68-
* - `mcg59(std::uint32_t seed, std::uint64_t offset = 0)`_
67+
* - `mcg59(std::uint64_t seed, std::uint64_t offset = 0)`_
6968
- Constructor for common seed initialization of the engine and common number of skipped elements
70-
* - `mcg59(std::initializer_list<std::uint32_t> seed, std::uint64_t offset = 0)`_
71-
- Constructor for extended seed initialization of the engine and common number of skipped elements
7269

7370
.. container:: section
7471

@@ -80,28 +77,11 @@ class mcg59
8077
8178
mcg59::mcg59()
8279
83-
.. _`mcg59(std::uint32_t seed, std::uint64_t offset = 0)`:
80+
.. _`mcg59(std::uint64_t seed, std::uint64_t offset = 0)`:
8481

8582
.. code-block:: cpp
8683
87-
mcg59::mcg59(std::uint32_t seed, std::uint64_t offset = 0)
88-
89-
.. container:: section
90-
91-
.. rubric:: Input Parameters
92-
93-
seed
94-
The initial conditions of the generator state, assume :math:`x_0 = seed \ mod \ 2^{59}`,
95-
if :math:`x_0 = 0`, assume :math:`x_0 = 1`.
96-
97-
offset
98-
Number of skipped elements.
99-
100-
.. _`mcg59(std::initializer_list<std::uint32_t> seed, std::uint64_t offset = 0)`:
101-
102-
.. code-block:: cpp
103-
104-
mcg59::mcg59(std::initializer_list<std::uint32_t> seed, std::uint64_t offset = 0)
84+
mcg59::mcg59(std::uint64_t seed, std::uint64_t offset = 0)
10585
10686
.. container:: section
10787

0 commit comments

Comments
 (0)