SYR2K - Symmetric rank-2k update to a matrix

pyclblas.clblasCsyr2k(order, uplo, transAB, N, K, alpha, A, offA, lda, B, offB, ldb, beta, C, offC, ldc, commandQueues, eventWaitList)

wraps: clblasCsyr2k

Rank-2k update of a symmetric matrix with complex float elements. Extended version. Rank-k updates:

  • ( C ← α A BT+ α B AT+ β C )
  • ( C ← α ATB + α BTA β C )
where C is a symmetric matrix.
Parameters:
  • order (clblasOrder [in]) – Row/column order.
  • uplo (clblasUplo [in]) – The triangle in matrix C being referenced.
  • transAB (clblasTranspose [in]) – How matrices A and B is to be transposed.
  • N (int [in]) – Number of rows and columns in matrix C.
  • K (int [in]) – Number of columns of the matrices A and B if they are not transposed, and number of rows otherwise.
  • alpha (complex [in]) – The factor of matrices A and B.
  • A (pyopencl.Buffer [in]) – Buffer object storing matrix A.
  • offA (int [in]) – Offset of the first element of the matrix A in the buffer object. Counted in elements.
  • lda (int [in]) – Leading dimension of matrix A.
  • B (pyopencl.Buffer [in]) – Buffer object storing matrix B.
  • offB (int [in]) – Offset of the first element of the matrix B in the buffer object. Counted in elements.
  • ldb (int [in]) – Leading dimension of matrix B.
  • beta (complex [in]) – The factor of matrix C.
  • C (pyopencl.Buffer [out]) – Buffer object storing matrix C.
  • offC (int [in]) – Offset of the first element of the matrix C in the buffer object. Counted in elements.
  • ldc (int [in]) – Leading dimension of matrix 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.clblasDsyr2k(order, uplo, transAB, N, K, alpha, A, offA, lda, B, offB, ldb, beta, C, offC, ldc, commandQueues, eventWaitList)

wraps: clblasDsyr2k

Rank-2k update of a symmetric matrix with double elements. Extended version. Rank-k updates:

  • ( C ← α A BT+ α B AT+ β C )
  • ( C ← α ATB + α BTA β C )
where C is a symmetric matrix.
Parameters:
  • order (clblasOrder [in]) – Row/column order.
  • uplo (clblasUplo [in]) – The triangle in matrix C being referenced.
  • transAB (clblasTranspose [in]) – How matrices A and B is to be transposed.
  • N (int [in]) – Number of rows and columns in matrix C.
  • K (int [in]) – Number of columns of the matrices A and B if they are not transposed, and number of rows otherwise.
  • alpha (float [in]) – The factor of matrices A and B.
  • A (pyopencl.Buffer [in]) – Buffer object storing matrix A.
  • offA (int [in]) – Offset of the first element of the matrix A in the buffer object. Counted in elements.
  • lda (int [in]) – Leading dimension of matrix A.
  • B (pyopencl.Buffer [in]) – Buffer object storing matrix B.
  • offB (int [in]) – Offset of the first element of the matrix B in the buffer object. Counted in elements.
  • ldb (int [in]) – Leading dimension of matrix B.
  • beta (float [in]) – The factor of matrix C.
  • C (pyopencl.Buffer [out]) – Buffer object storing matrix C.
  • offC (int [in]) – Offset of the first element of the matrix C in the buffer object. Counted in elements.
  • ldc (int [in]) – Leading dimension of matrix 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.clblasSsyr2k(order, uplo, transAB, N, K, alpha, A, offA, lda, B, offB, ldb, beta, C, offC, ldc, commandQueues, eventWaitList)

wraps: clblasSsyr2k

Rank-2k update of a symmetric matrix with float elements. Extended version. Rank-k updates:

  • ( C ← α A BT+ α B AT+ β C )
  • ( C ← α ATB + α BTA β C )
where C is a symmetric matrix.
Parameters:
  • order (clblasOrder [in]) – Row/column order.
  • uplo (clblasUplo [in]) – The triangle in matrix C being referenced.
  • transAB (clblasTranspose [in]) – How matrices A and B is to be transposed.
  • N (int [in]) – Number of rows and columns in matrix C.
  • K (int [in]) – Number of columns of the matrices A and B if they are not transposed, and number of rows otherwise.
  • alpha (float [in]) – The factor of matrices A and B.
  • A (pyopencl.Buffer [in]) – Buffer object storing matrix A.
  • offA (int [in]) – Offset of the first element of the matrix A in the buffer object. Counted in elements.
  • 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.
  • B (pyopencl.Buffer [in]) – Buffer object storing matrix B.
  • offB (int [in]) – Offset of the first element of the matrix B in the buffer object. Counted in elements.
  • ldb (int [in]) – Leading dimension of matrix B. It cannot be less less than K if B matches to the op( B ) matrix in the row-major format, and less than N otherwise.
  • beta (float [in]) – The factor of matrix C.
  • C (pyopencl.Buffer [out]) – Buffer object storing matrix C.
  • offC (int [in]) – Offset of the first element of the matrix C in the buffer object. Counted in elements.
  • ldc (int [in]) – Leading dimension of matrix 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.clblasZsyr2k(order, uplo, transAB, N, K, alpha, A, offA, lda, B, offB, ldb, beta, C, offC, ldc, commandQueues, eventWaitList)

wraps: clblasZsyr2k

Rank-2k update of a symmetric matrix with complex double elements. Extended version. Rank-k updates:

  • ( C ← α A BT+ α B AT+ β C )
  • ( C ← α ATB + α BTA β C )
where C is a symmetric matrix.
Parameters:
  • order (clblasOrder [in]) – Row/column order.
  • uplo (clblasUplo [in]) – The triangle in matrix C being referenced.
  • transAB (clblasTranspose [in]) – How matrices A and B is to be transposed.
  • N (int [in]) – Number of rows and columns in matrix C.
  • K (int [in]) – Number of columns of the matrices A and B if they are not transposed, and number of rows otherwise.
  • alpha (complex [in]) – The factor of matrices A and B.
  • A (pyopencl.Buffer [in]) – Buffer object storing matrix A.
  • offA (int [in]) – Offset of the first element of the matrix A in the buffer object. Counted in elements.
  • lda (int [in]) – Leading dimension of matrix A.
  • B (pyopencl.Buffer [in]) – Buffer object storing matrix B.
  • offB (int [in]) – Offset of the first element of the matrix B in the buffer object. Counted in elements.
  • ldb (int [in]) – Leading dimension of matrix B.
  • beta (complex [in]) – The factor of matrix C.
  • C (pyopencl.Buffer [out]) – Buffer object storing matrix C.
  • offC (int [in]) – Offset of the first element of the matrix C in the buffer object. Counted in elements.
  • ldc (int [in]) – Leading dimension of matrix 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.