You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/elements/oneMKL/source/domains/dense_linear_algebra.inc.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ This section contains information about dense linear algebra routines:
9
9
10
10
:ref:`onemkl_blas` provides vector, matrix-vector, and matrix-matrix routines for dense matrices and vector operations.
11
11
12
-
:ref:`onemkl_lapack` provides more complex dense linear algebra routines, e.g., solving dense systems of linear equations, least square problems, eigenvalue, singular value problems, and Sylvester's equations.
12
+
:ref:`onemkl_lapack` provides more complex dense linear algebra routines, e.g., matrix factorization, solving dense systems of linear equations, least square problems, eigenvalue and singular value problems, and performing a number of related computational tasks.
Size of scratchpad memory as a number of floating point elements of type T.
126
+
Size should not be less than the value returned by :ref:`onemkl_lapack_gebrd_scratchpad_size` function.
132
127
133
128
134
129
.. container:: section
135
-
:name: GUID-F0C3D97D-E883-4070-A1C2-4FE43CC37D12
136
130
137
131
138
132
.. rubric:: Output Parameters
@@ -179,36 +173,150 @@ gebrd
179
173
unitary matrix ``P``.
180
174
181
175
182
-
work
183
-
Buffer of workspace.
176
+
scratchpad
177
+
Buffer holding scratchpad memory to be used by routine for storing intermediate results.
184
178
185
179
186
-
info
187
-
Buffer containing error information.
180
+
.. container:: section
181
+
182
+
183
+
.. rubric:: Throws
184
+
:class: sectiontitle
185
+
188
186
187
+
onemkl::lapack::exception
188
+
Exception is thrown in case of problems happened during calculations. The ``info`` code of the problem can be obtained by `get_info()` method of exception object:
189
189
190
-
If ``info=0``, the execution is successful.
190
+
If ``info=-i``, the ``i``-th parameter had an illegal value.
191
191
192
+
If ``info`` equals to value passed as scratchpad size, and ``get_detail()`` returns non zero, then passed scratchpad is of insufficient size, and required size should not be less than value return by ``get_detail()`` method of exception object.
192
193
193
-
If ``info=-i``, the ``i``-th parameter had an illegal value.
194
+
195
+
onemkl::lapack::gebrd (USM Version)
196
+
--------------------------------------
197
+
198
+
.. container::
199
+
200
+
.. container:: section
201
+
202
+
203
+
.. rubric:: Syntax
204
+
:class: sectiontitle
205
+
206
+
207
+
.. cpp:function:: cl::sycl::event onemkl::lapack::gebrd(cl::sycl::queue &queue, std::int64_t m, std::int64_t n, T *a, std::int64_t lda, RealT *d, RealT *e, T *tauq, T *taup, T *scratchpad, std::int64_t scratchpad_size, const cl::sycl::vector_class<cl::sycl::event> &events = {})
194
208
195
209
196
210
.. container:: section
197
-
:name: GUID-C97BF68F-B566-4164-95E0-A7ADC290DDE2
198
211
199
212
200
-
.. rubric:: Example
213
+
.. rubric:: Input Parameters
201
214
:class: sectiontitle
202
215
203
216
204
-
An example of how to use ``gebrd``\ can be found in the oneMKL
205
-
installation directory, under:
217
+
queue
218
+
The queue where the routine should be executed.
219
+
220
+
221
+
m
222
+
The number of rows in the matrix ``A`` (``0≤m``).
223
+
224
+
225
+
n
226
+
The number of columns in the matrix ``A`` (``0≤n``).
227
+
228
+
229
+
a
230
+
Pointer to matrix ``A``. The second dimension of ``a`` must be at least
231
+
``max(1, m)``.
232
+
233
+
234
+
lda
235
+
The leading dimension of ``a``.
206
236
207
237
208
-
::
238
+
scratchpad_size
239
+
Size of scratchpad memory as a number of floating point elements of type T.
240
+
Size should not be less than the value returned by :ref:`onemkl_lapack_gebrd_scratchpad_size` function.
241
+
242
+
events
243
+
List of events to wait for before starting computation. Defaults to empty list.
244
+
245
+
246
+
.. container:: section
247
+
248
+
249
+
.. rubric:: Output Parameters
250
+
:class: sectiontitle
251
+
252
+
253
+
a
254
+
If ``m≥n``, the diagonal and first super-diagonal of a are
255
+
overwritten by the upper bidiagonal matrix ``B``. The elements
256
+
below the diagonal, with the array tauq, represent the orthogonal
257
+
matrix ``Q`` as a product of elementary reflectors, and the
258
+
elements above the first superdiagonal, with the array taup,
259
+
represent the orthogonal matrix ``P`` as a product of elementary
260
+
reflectors.
261
+
262
+
263
+
If ``m<n``, the diagonal and first sub-diagonal of a are
264
+
overwritten by the lower bidiagonal matrix ``B``. The elements
265
+
below the first subdiagonal, with the array tauq, represent the
266
+
orthogonal matrix ``Q`` as a product of elementary reflectors, and
267
+
the elements above the diagonal, with the array taup, represent
268
+
the orthogonal matrix ``P`` as a product of elementary reflectors.
269
+
270
+
271
+
d
272
+
Pointer to memory of size at least ``max(1, min(m,n))``. Contains the diagonal
273
+
elements of ``B``.
274
+
275
+
276
+
e
277
+
Pointer to memory of size at least ``max(1, min(m,n) - 1)``. Contains the
278
+
off-diagonal elements of ``B``.
279
+
280
+
281
+
tauq
282
+
Pointer to memory of size at least ``max(1, min(m, n))``. The scalar factors of
283
+
the elementary reflectors which represent the orthogonal or
284
+
unitary matrix ``Q``.
285
+
286
+
287
+
taup
288
+
Pointer to memory of size at least ``max(1, min(m, n))``. The scalar factors of
289
+
the elementary reflectors which represent the orthogonal or
290
+
unitary matrix ``P``.
291
+
292
+
293
+
scratchpad
294
+
Pointer to scratchpad memory to be used by routine for storing intermediate results.
295
+
296
+
297
+
.. container:: section
298
+
299
+
300
+
.. rubric:: Throws
301
+
:class: sectiontitle
302
+
303
+
304
+
onemkl::lapack::exception
305
+
Exception is thrown in case of problems happened during calculations. The ``info`` code of the problem can be obtained by `get_info()` method of exception object:
306
+
307
+
If ``info=-i``, the ``i``-th parameter had an illegal value.
308
+
309
+
If ``info`` equals to value passed as scratchpad size, and ``get_detail()`` returns non zero, then passed scratchpad is of insufficient size, and required size should not be less than value return by ``get_detail()`` method of exception object.
310
+
311
+
312
+
.. container:: section
313
+
314
+
315
+
.. rubric:: Return Values
316
+
:class: sectiontitle
209
317
210
318
211
-
examples/sycl/lapack/gebrd.cpp
319
+
Output event to wait on to ensure computation is complete.
0 commit comments