sytrf¶
Computes the Bunch-Kaufman factorization of a symmetric matrix. This
routine belongs to the oneapi::mkl::lapack namespace.
Description¶
The routine computes the factorization of a real/complex symmetric
matrix A using the Bunch-Kaufman diagonal pivoting method. The
form of the factorization is:
if
uplo=uplo::upper,A=U*D*UTif
uplo=uplo::lower,A=L*D*LT
where A is the input matrix, U and L are products of
permutation and triangular matrices with unit diagonal (upper
triangular for U and lower triangular for L), and D is a
symmetric block-diagonal matrix with 1-by-1 and 2-by-2 diagonal
blocks. U and L have 2-by-2 unit diagonal blocks
corresponding to the 2-by-2 blocks of D.
API¶
Syntax¶
namespace oneapi::mkl::lapack {
void sytrf(cl::sycl::queue &queue,
mkl::uplo uplo,
std::int64_t n,
cl::sycl::buffer<T> &a,
std::int64_t lda,
std::int64_t *ipiv,
cl::sycl::buffer<T> &scratchpad,
std::int64_t scratchpad_size)
}
sytrf supports the following precisions and devices:
T |
Devices Supported |
|---|---|
|
Host and CPU |
|
Host and CPU |
|
Host and CPU |
|
Host and CPU |
Input Parameters¶
queue |
Device queue where calculations will be performed. |
uplo |
Indicates whether the upper or lower triangular part of |
n |
The order of matrix |
a |
Buffer holding the coefficients of matrix |
lda |
The leading dimension of |
scratchpad |
Buffer holding scratchpad memory to be used by the routine for storing intermediate results. |
scratchpad_size |
Size of scratchpad memory as a number of floating point elements of type |
Output Parameters¶
a |
The upper or lower triangular part of a is overwritten by details of the block-diagonal matrix |
ipiv |
Buffer holding array of size at least |
Exceptions¶
Exception |
Description |
|---|---|
|
This exception is thrown when problems occur during calculations. You can obtain the info code of the problem using the info() method of the exception object: If If If |