HER2K - Hermitian rank-2k update to a matrix¶
-
pyclblas.
clblasCher2k
(order, uplo, trans, N, K, alpha, A, offa, lda, B, offb, ldb, beta, C, offc, ldc, commandQueues, eventWaitList)¶ wraps: clblasCher2k
Rank-2k update of a hermitian matrix with float-complex elements. Rank-k updates:
- ( C ← α A BH+ conj( α ) B AH+ β C )
- ( C ← α AHB + conj( α ) BHA + β C )
where C is a hermitian matrix.Parameters: - order (clblasOrder [in]) – Row/column order.
- uplo (clblasUplo [in]) – The triangle in matrix C being referenced.
- trans (clblasTranspose [in]) – How matrix A is to be transposed.
- N (int [in]) – Number of rows and columns in matrix C.
- K (int [in]) – Number of columns of the matrix A if it is not transposed, and number of rows otherwise.
- alpha (complex [in]) – The factor of matrix A.
- A (pyopencl.Buffer [in]) – Buffer object storing the matrix A.
- offa (int [in]) – Offset in number of elements for the first element in matrix A.
- lda (int [in]) – Leading dimension of matrix A. It cannot be less than K if A is in the row-major format, and less than N otherwise. Vice-versa for transpose case.
- B (pyopencl.Buffer [in]) – Buffer object storing the matrix B.
- offb (int [in]) – Offset in number of elements for the first element in matrix B.
- ldb (int [in]) – Leading dimension of matrix B. It cannot be less than K if B is in the row-major format, and less than N otherwise. Vice-versa for transpose case.
- beta (float [in]) – The factor of the matrix C.
- C (pyopencl.Buffer [out]) – Buffer object storing matrix C.
- offc (int [in]) – Offset in number of elements for the first element in matrix C.
- ldc (int [in]) – Leading dimension of matric C. It cannot be less than N.
- commandQueues (pyopencl.CommandQueue [in]) – OpenCL command queues. A list, tuple, or single instance of pyopencl.CommandQueue. Must not be None.
- eventWaitList (pyopencl.Event [in]) – Event wait list. A list, tuple, or single instance of pyopencl.Event. May be None.
Returns: A tuple of pyopencl.Event instances, one for each commandQueue supplied.
-
pyclblas.
clblasZher2k
(order, uplo, trans, N, K, alpha, A, offa, lda, B, offb, ldb, beta, C, offc, ldc, commandQueues, eventWaitList)¶ wraps: clblasZher2k
Rank-2k update of a hermitian matrix with double-complex elements. Rank-k updates:
- ( C ← α A BH+ conj( α ) B AH+ β C )
- ( C ← α AHB + conj( α ) BHA + β C )
where C is a hermitian matrix.Parameters: - order (clblasOrder [in]) – Row/column order.
- uplo (clblasUplo [in]) – The triangle in matrix C being referenced.
- trans (clblasTranspose [in]) – How matrix A is to be transposed.
- N (int [in]) – Number of rows and columns in matrix C.
- K (int [in]) – Number of columns of the matrix A if it is not transposed, and number of rows otherwise.
- alpha (complex [in]) – The factor of matrix A.
- A (pyopencl.Buffer [in]) – Buffer object storing the matrix A.
- offa (int [in]) – Offset in number of elements for the first element in matrix A.
- lda (int [in]) – Leading dimension of matrix A. It cannot be less than K if A is in the row-major format, and less than N otherwise. Vice-versa for transpose case.
- B (pyopencl.Buffer [in]) – Buffer object storing the matrix B.
- offb (int [in]) – Offset in number of elements for the first element in matrix B.
- ldb (int [in]) – Leading dimension of matrix B. It cannot be less than K if B is in the row-major format, and less than N otherwise. Vice-versa for transpose case.
- beta (float [in]) – The factor of the matrix C.
- C (pyopencl.Buffer [out]) – Buffer object storing matrix C.
- offc (int [in]) – Offset in number of elements for the first element in matrix C.
- ldc (int [in]) – Leading dimension of matric C. It cannot be less than N.
- commandQueues (pyopencl.CommandQueue [in]) – OpenCL command queues. A list, tuple, or single instance of pyopencl.CommandQueue. Must not be None.
- eventWaitList (pyopencl.Event [in]) – Event wait list. A list, tuple, or single instance of pyopencl.Event. May be None.
Returns: A tuple of pyopencl.Event instances, one for each commandQueue supplied.