potrf_batch (Buffer Strided Version)¶
Computes the Cholesky factorizations of a batch of symmetric (or
Hermitian, for complex data) positive-definite matrices. This routine
belongs to the oneapi::mkl::lapack
namespace.
Description¶
The routine forms the Cholesky factorizations of a symmetric
positive-definite or, for complex data, Hermitian positive-definite
matrices A
i, i
ϵ{1...batch_size}
:
A
i =U
iT *U
i for real data,A
i =U
iH *U
i for complex data. ifuplo = mkl::uplo::upper
,A
i =L
iT *L
i for real data,A
i =L
iH *L
i for complex data ifuplo = mkl::uplo::lower
Where L
i is a lower triangular matrix and
U
i is an upper triangular matrix.
API¶
Syntax¶
namespace oneapi::mkl::lapack {
void potrf_batch(cl::sycl::queue &queue,
mkl::uplo uplo,
std::int64_t n,
cl::sycl::buffer<T> &a,
std::int64_t lda,
std::int64_t stride_a,
std::int64_t batch_size,
cl::sycl::buffer<T> &scratchpad,
std::int64_t scratchpad_size)
}
Function supports the following precisions and devices.
T |
Devices supported |
---|---|
|
Host, CPU, and GPU |
|
Host, CPU, and GPU |
|
Host, CPU, and GPU |
|
Host, CPU, and GPU |
Input Parameters¶
- queue
Device queue where calculations will be performed.
- uplo
Indicates whether the upper or lower triangular part of
A
i is stored and howA
i is factored:If uplo = mkl::uplo::upper, the array
a
stores the upper triangular parts of the matricesA
i.If uplo = mkl::uplo::lower, the array
a
stores the lower triangular parts of the matricesA
i.- n
Specifies the order of the matrices
A
i, (0 ≤ n
).- a
Array containing a batch of input matrices
A
i, each ofA
i being of sizelda
*n
and holding either uppoer or lower triangular parts of the matricesA
i (see uplo).- lda
The leading dimension of
A
i.- stride_a
The stride between the beginnings of matrices
A
i inside the batch.- batch_size
Specifies the number of problems in a batch.
- scratchpad
Scratchpad memory to be used by routine for storing intermediate results.
- scratchpad_size
Size of scratchpad memory as a number of floating point elements of type T. Size should not be less then the value returned by potrf_batch_scratchpad_size (Strided Version).
Output Parameters¶
- a
The batch array
a
is overwritten by the Cholesky factorU
i orL
i, as specified by uplo .
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 |