orgbr_scratchpad_size¶
Computes size of scratchpad memory required for orgbr function.
orgbr_scratchpad_size
supports the following precisions.
T
float
double
Description
Computes the number of elements of type T the scratchpad memory to be passed to orgbr function should be able to hold. Calls to this routine must specify the template parameter explicitly.
orgbr_scratchpad_size¶
Syntax
-
template<typename
T
>
std::int64_tonemkl::lapack
::
orgbr_scratchpad_size
(cl::sycl::queue &queue, onemkl::generate gen, std::int64_t m, std::int64_t n, std::int64_t k, std::int64_t lda, std::int64_t &scratchpad_size)¶
Input Parameters
- queue
Device queue where calculations by orgbr function will be performed.
- gen
Must be
generate::q
orgenerate::p
.If
gen = generate::q
, the routine generates the matrixQ
.If
gen = generate::p
, the routine generates the matrixP
T.- m
The number of rows in the matrix
Q
orP
T to be returned(0≤m)
.If
gen = generate::q
,m ≥ n ≥ min(m, k)
.If
gen = generate::p
,n ≥ m ≥ min(n, k)
.- n
The number of rows in the matrix
Q
orP
T to be returned(0≤n)
. Seem
for constraints.- k
If
gen = generate::q
, the number of columns in the originalm
-by-k
matrix returned by gebrd.If
gen = generate::p
, the number of rows in the originalk
-by-n
matrix returned by gebrd.- lda
The leading dimension of a.
Throws
- onemkl::lapack::exception
Exception is thrown in case of incorrect argument value is supplied. Position of wrong argument can be determined by get_info() method of exception object.
Return Value
The number of elements of type T the scratchpad memory to be passed to orgbr function should be able to hold.
Parent topic: LAPACK Singular Value and Eigenvalue Problem Routines