Skip to content

Commit

Permalink
[oneMKL][LAPACK] Fix ldc size requirements in {or,un}mtr related files
Browse files Browse the repository at this point in the history
  • Loading branch information
sknepper committed Nov 5, 2024
1 parent acfb7ff commit 3d1f8ee
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 22 deletions.
12 changes: 6 additions & 6 deletions source/elements/oneMKL/source/domains/lapack/ormtr.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ In the descriptions below, ``r`` denotes the order of :math:`Q`:
.. container:: tablenoborder

.. list-table::
:header-rows: 1
:header-rows: 0

* - :math:`r = m`
- if ``side = side::left``
Expand Down Expand Up @@ -97,7 +97,7 @@ a
The buffer ``a`` as returned by :ref:`onemkl_lapack_sytrd`.

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

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

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

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

.. list-table::
:header-rows: 1
:header-rows: 0

* - :math:`r = m`
- if ``side = side::left``
Expand Down Expand Up @@ -213,7 +213,7 @@ a
The pointer to ``a`` as returned by :ref:`onemkl_lapack_sytrd`.

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

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

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

scratchpad_size
Size of scratchpad memory as a number of floating point elements of type ``T``.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ In the descriptions below, ``r`` denotes the order of :math:`Q`:

.. container:: tablenoborder

.. list-table::
:header-rows: 1
.. list-table::
:header-rows: 0

* - :math:`r = m`
- if ``side = side::left``
* - :math:`r = n`
- if ``side = side::right``
* - :math:`r = m`
- if ``side = side::left``
* - :math:`r = n`
- if ``side = side::right``

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

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

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

.. container:: section

Expand Down
12 changes: 6 additions & 6 deletions source/elements/oneMKL/source/domains/lapack/unmtr.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ In the descriptions below, ``r`` denotes the order of :math:`Q`:
.. container:: tablenoborder

.. list-table::
:header-rows: 1
:header-rows: 0

* - :math:`r`\ =\ :math:`m`
- if ``side = side::left``
Expand Down Expand Up @@ -106,7 +106,7 @@ a
:ref:`onemkl_lapack_hetrd`.

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

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

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

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

.. list-table::
:header-rows: 1
:header-rows: 0

* - :math:`r`\ =\ :math:`m`
- if ``side = side::left``
Expand Down Expand Up @@ -231,7 +231,7 @@ a
:ref:`onemkl_lapack_hetrd`.

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

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

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

scratchpad_size
Size of scratchpad memory as a number of floating point elements of type ``T``.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,18 @@ unmtr_scratchpad_size

.. rubric:: Input Parameters

In the descriptions below, ``r`` denotes the order of :math:`Q`:

.. container:: tablenoborder

.. list-table::
:header-rows: 0

* - :math:`r = m`
- if ``side = side::left``
* - :math:`r = n`
- if ``side = side::right``

queue
Device queue where calculations by :ref:`onemkl_lapack_unmtr` function will be performed.

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

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

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

.. container:: section

Expand Down

0 comments on commit 3d1f8ee

Please sign in to comment.