trtrs_scratchpad_size¶
Computes size of scratchpad memory required for trtrs function.
trtrs_scratchpad_sizesupports the following precisions.
T
float
double
std::complex<float>
std::complex<double>
Description
Computes the number of elements of type T the scratchpad memory to be passed to trtrs function should be able to hold. Calls to this routine must specify the template parameter explicitly.
trtrs_scratchpad_size¶
Syntax
-
template<typename
T>
std::int64_tonemkl::lapack::trtrs_scratchpad_size(cl::sycl::queue &queue, onemkl::uplo upper_lower, onemkl::transpose trans, onemkl::diag diag, std::int64_t n, std::int64_t nrhs, std::int64_t lda, std::int64_t ldb)¶
Input Parameters
- queue
Device queue where calculations by trtrs function will be performed.
- upper_lower
Indicates whether
Ais upper or lower triangular:If upper_lower =
uplo::upper, thenAis upper triangular.If upper_lower =
uplo::lower, thenAis lower triangular.- trans
Indicates the form of the equations:
If
trans=onemkl::transpose::nontrans, thenA*X = Bis solved forX.If
trans=onemkl::transpose::trans, thenAT*X = Bis solved forX.If
trans=onemkl::transpose::conjtrans, thenAH*X = Bis solved forX.- diag
If diag =
onemkl::diag::nonunit, thenAis not a unit triangular matrix.If unit_diag =
diag::unit, thenAis unit triangular: diagonal elements ofAare assumed to be 1 and not referenced in the array a.- n
The order of
A; the number of rows inB; n≥ 0.- nrhs
The number of right-hand sides (
0≤nrhs).- lda
The leading dimension of
a; lda≥ max(1, n).- ldb
The leading dimension of b; ldb
≥ max(1, n).
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 trtrs function should be able to hold.
Parent topic: LAPACK Linear Equation Routines