trtrs_scratchpad_size
Computes size of scratchpad memory required for
trtrs
(USM Version)
function. This routine belongs to the oneapi::mkl::lapack
namespace.Description
Computes the number of elements of type
T
the scratchpad memory to be passed to the trtrs
(buffer or USM version) function should be able to hold.API
Syntax
namespace oneapi::mkl::lapack {
template<typename T>
std::int64_t gebrd_scratchpad_size(cl::sycl::queue &queue,
mkl::uplo uplo,
mkl::transpose trans,
mkl::diag diag,
std::int64_t n,
std::int64_t lda,
std::int64_t ldb)
}
Input Parameters
- queue
- Device queue where calculations by the trtrs (buffer or USM version) function will be performed.
- uplo
- Indicates whetherAis upper or lower triangular:If uplo =uplo::upper, thenAis upper triangular.If uplo =uplo::lower, thenAis lower triangular.
- trans
- If transa =transpose::nontrans, thenA*X=Bis solved forX.If transa =transpose::trans, thenAT*X=Bis solved forX.If transa =transpose::conjtrans, thenAH*X=Bis solved forX.
- diag
- If diag =diag::nonunit, thenAis not a unit triangular matrix.If diag =diag::unit, thenAis unit triangular: diagonal elements ofAare assumed to be 1 and not referenced in the array a.
- n
- The order ofA; the number of rows inB; n≥ 0.
- nrhs
- The number of right-hand sides; nrhs≥ 0.
- lda
- The leading dimension ofa; lda≥ max(1, n).
- ldb
- The leading dimension of b; ldb≥ max(1, n).
Exceptions
Exception | Description |
---|---|
mkl::lapack::exception | This exception is thrown when an incorrect argument value is supplied. You can determine the position of the incorrect argument by the info() method of the exception object. |
Return Values
The number of elements of type
T
the scratchpad memory to be passed to the trtrs
(buffer or USM version) function should be able to hold.