Skip to content

Commit d151e1e

Browse files
authored
[oneMKL][LAPACK] Fix ldc size requirements in {or,un}mtr related files (#600)
1 parent acfb7ff commit d151e1e

File tree

4 files changed

+34
-22
lines changed

4 files changed

+34
-22
lines changed

source/elements/oneMKL/source/domains/lapack/ormtr.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ In the descriptions below, ``r`` denotes the order of :math:`Q`:
5454
.. container:: tablenoborder
5555

5656
.. list-table::
57-
:header-rows: 1
57+
:header-rows: 0
5858

5959
* - :math:`r = m`
6060
- if ``side = side::left``
@@ -97,7 +97,7 @@ a
9797
The buffer ``a`` as returned by :ref:`onemkl_lapack_sytrd`.
9898

9999
lda
100-
The leading dimension of ``a`` :math:`(\max(1, r) \le \text{lda})`.
100+
The leading dimension of ``a`` :math:`(\text{lda} \ge \max(1, r))`.
101101

102102
tau
103103
The buffer ``tau`` as returned by a :ref:`onemkl_lapack_sytrd`. The
@@ -108,7 +108,7 @@ c
108108
must be at least :math:`\max(1, n)`.
109109

110110
ldc
111-
The leading dimension of ``c`` :math:`(\max(1, n) \le \text{ldc})`.
111+
The leading dimension of ``c`` :math:`(\text{ldc} \ge \max(1, m))`.
112112

113113
scratchpad_size
114114
Size of scratchpad memory as a number of floating point elements of type ``T``.
@@ -171,7 +171,7 @@ In the descriptions below, ``r`` denotes the order of :math:`Q`:
171171
.. container:: tablenoborder
172172

173173
.. list-table::
174-
:header-rows: 1
174+
:header-rows: 0
175175

176176
* - :math:`r = m`
177177
- if ``side = side::left``
@@ -213,7 +213,7 @@ a
213213
The pointer to ``a`` as returned by :ref:`onemkl_lapack_sytrd`.
214214

215215
lda
216-
The leading dimension of ``a`` :math:`(\max(1, r) \le \text{lda})`.
216+
The leading dimension of ``a`` :math:`(\text{lda} \ge \max(1, r))`.
217217

218218
tau
219219
The buffer ``tau`` as returned by :ref:`onemkl_lapack_sytrd`. The
@@ -224,7 +224,7 @@ c
224224
must be at least :math:`\max(1, n)`.
225225

226226
ldc
227-
The leading dimension of ``c`` :math:`(\max(1, n) \le \text{ldc})`.
227+
The leading dimension of ``c`` :math:`(\text{ldc} \ge \max(1, m))`.
228228

229229
scratchpad_size
230230
Size of scratchpad memory as a number of floating point elements of type ``T``.

source/elements/oneMKL/source/domains/lapack/ormtr_scratchpad_size.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ In the descriptions below, ``r`` denotes the order of :math:`Q`:
4848

4949
.. container:: tablenoborder
5050

51-
.. list-table::
52-
:header-rows: 1
51+
.. list-table::
52+
:header-rows: 0
5353

54-
* - :math:`r = m`
55-
- if ``side = side::left``
56-
* - :math:`r = n`
57-
- if ``side = side::right``
54+
* - :math:`r = m`
55+
- if ``side = side::left``
56+
* - :math:`r = n`
57+
- if ``side = side::right``
5858

5959
queue
6060
Device queue where calculations by :ref:`onemkl_lapack_ormtr` function will be performed.
@@ -89,10 +89,10 @@ n
8989
The number of rows in the matrix :math:`C` :math:`(n \ge 0)`.
9090

9191
lda
92-
The leading dimension of ``a`` :math:`(\max(1, r) \le \text{lda})`.
92+
The leading dimension of ``a`` :math:`(\text{lda} \ge \max(1, r))`.
9393

9494
ldc
95-
The leading dimension of ``c`` :math:`(\max(1, n) \le \text{ldc})`.
95+
The leading dimension of ``c`` :math:`(\text{ldc} \ge \max(1, m))`.
9696

9797
.. container:: section
9898

source/elements/oneMKL/source/domains/lapack/unmtr.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ In the descriptions below, ``r`` denotes the order of :math:`Q`:
5757
.. container:: tablenoborder
5858

5959
.. list-table::
60-
:header-rows: 1
60+
:header-rows: 0
6161

6262
* - :math:`r`\ =\ :math:`m`
6363
- if ``side = side::left``
@@ -106,7 +106,7 @@ a
106106
:ref:`onemkl_lapack_hetrd`.
107107

108108
lda
109-
The leading dimension of ``a`` :math:`(\max(1,r) \le \text{lda})`.
109+
The leading dimension of ``a`` :math:`(\text{lda} \ge \max(1,r))`.
110110

111111
tau
112112
The buffer ``tau`` as returned by
@@ -118,7 +118,7 @@ c
118118
must be at least :math:`\max(1,n)`.
119119

120120
ldc
121-
The leading dimension of ``c`` :math:`(\max(1,n) \le \text{ldc})`.
121+
The leading dimension of ``c`` :math:`(\text{ldc} \ge \max(1,m))`.
122122

123123
scratchpad_size
124124
Size of scratchpad memory as a number of floating point elements of type ``T``.
@@ -182,7 +182,7 @@ In the descriptions below, ``r`` denotes the order of :math:`Q`:
182182
.. container:: tablenoborder
183183

184184
.. list-table::
185-
:header-rows: 1
185+
:header-rows: 0
186186

187187
* - :math:`r`\ =\ :math:`m`
188188
- if ``side = side::left``
@@ -231,7 +231,7 @@ a
231231
:ref:`onemkl_lapack_hetrd`.
232232

233233
lda
234-
The leading dimension of ``a`` :math:`(\max(1,r) \le \text{lda})`.
234+
The leading dimension of ``a`` :math:`(\text{lda} \ge \max(1,r))`.
235235

236236
tau
237237
The pointer to ``tau`` as returned by
@@ -243,7 +243,7 @@ c
243243
must be at least :math:`\max(1,n)`.
244244

245245
ldc
246-
The leading dimension of ``c`` :math:`(\max(1,n) \le \text{ldc})`.
246+
The leading dimension of ``c`` :math:`(\text{ldc} \ge \max(1,m))`.
247247

248248
scratchpad_size
249249
Size of scratchpad memory as a number of floating point elements of type ``T``.

source/elements/oneMKL/source/domains/lapack/unmtr_scratchpad_size.rst

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,18 @@ unmtr_scratchpad_size
4343

4444
.. rubric:: Input Parameters
4545

46+
In the descriptions below, ``r`` denotes the order of :math:`Q`:
47+
48+
.. container:: tablenoborder
49+
50+
.. list-table::
51+
:header-rows: 0
52+
53+
* - :math:`r = m`
54+
- if ``side = side::left``
55+
* - :math:`r = n`
56+
- if ``side = side::right``
57+
4658
queue
4759
Device queue where calculations by :ref:`onemkl_lapack_unmtr` function will be performed.
4860

@@ -81,10 +93,10 @@ k
8193
matrix :math:`Q` (:math:`0 \le k \le n`).
8294

8395
lda
84-
The leading dimension of :math:`a` :math:`(\max(1,r) \le \text{lda})`.
96+
The leading dimension of :math:`a` :math:`(\text{lda} \ge \max(1,r))`.
8597

8698
ldc
87-
The leading dimension of :math:`c` :math:`(\max(1,n) \le \text{ldc})`.
99+
The leading dimension of :math:`c` :math:`(\text{ldc} \ge \max(1,m))`.
88100

89101
.. container:: section
90102

0 commit comments

Comments
 (0)