HERK - Hermitian rank-k update to a matrix

pyclblas.clblasCherk(order, uplo, transA, N, K, alpha, A, offa, lda, beta, C, offc, ldc, commandQueues, eventWaitList)

wraps: clblasCherk

Rank-k update of a hermitian matrix with float-complex elements. Rank-k updates:

  • ( C ← α A AH+ β C )
  • ( C ← α AHA + β C )
where C is a hermitian matrix.
Parameters:
  • order (clblasOrder [in]) – Row/column order.
  • uplo (clblasUplo [in]) – The triangle in matrix C being referenced.
  • transA (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 (float [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.
  • 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.clblasZherk(order, uplo, transA, N, K, alpha, A, offa, lda, beta, C, offc, ldc, commandQueues, eventWaitList)

wraps: clblasZherk

Rank-k update of a hermitian matrix with double-complex elements. Rank-k updates:

  • ( C ← α A AH+ β C )
  • ( C ← α AHA + β C )
where C is a hermitian matrix.
Parameters:
  • order (clblasOrder [in]) – Row/column order.
  • uplo (clblasUplo [in]) – The triangle in matrix C being referenced.
  • transA (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 (float [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.
  • 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.