GBMV - General banded matrix-vector multiplication

pyclblas.clblasCgbmv(order, trans, M, N, KL, KU, alpha, A, offa, lda, X, offx, incx, beta, Y, offy, incy, commandQueues, eventWaitList)

wraps: clblasCgbmv

Matrix-vector product with a general rectangular banded matrix and float-complex elements. Matrix-vector products:

  • ( Y ← α A X + β Y )
  • ( Y ← α ATX + β Y )
Parameters:
  • order (clblasOrder [in]) – Row/column order.
  • trans (clblasTranspose [in]) – How matrix A is to be transposed.
  • M (int [in]) – Number of rows in banded matrix A.
  • N (int [in]) – Number of columns in banded matrix A.
  • KL (int [in]) – Number of sub-diagonals in banded matrix A.
  • KU (int [in]) – Number of super-diagonals in banded matrix A.
  • alpha (complex [in]) – The factor of banded matrix A.
  • A (pyopencl.Buffer [in]) – Buffer object storing banded matrix A.
  • offa (int [in]) – Offset in number of elements for the first element in banded matrix A.
  • lda (int [in]) – Leading dimension of banded matrix A. It cannot be less than ( KL + KU + 1 ).
  • X (pyopencl.Buffer [in]) – Buffer object storing vector X.
  • offx (int [in]) – Offset of first element of vector X in buffer object. Counted in elements.
  • incx (int [in]) – Increment for the elements of X. Must not be zero.
  • beta (complex [in]) – The factor of the vector Y.
  • Y (pyopencl.Buffer [out]) – Buffer object storing the vector y.
  • offy (int [in]) – Offset of first element of vector Y in buffer object. Counted in elements.
  • incy (int [in]) – Increment for the elements of Y. Must not be zero.
  • 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.clblasDgbmv(order, trans, M, N, KL, KU, alpha, A, offa, lda, X, offx, incx, beta, Y, offy, incy, commandQueues, eventWaitList)

wraps: clblasDgbmv

Matrix-vector product with a general rectangular banded matrix and double elements. Matrix-vector products:

  • ( Y ← α A X + β Y )
  • ( Y ← α ATX + β Y )
Parameters:
  • order (clblasOrder [in]) – Row/column order.
  • trans (clblasTranspose [in]) – How matrix A is to be transposed.
  • M (int [in]) – Number of rows in banded matrix A.
  • N (int [in]) – Number of columns in banded matrix A.
  • KL (int [in]) – Number of sub-diagonals in banded matrix A.
  • KU (int [in]) – Number of super-diagonals in banded matrix A.
  • alpha (float [in]) – The factor of banded matrix A.
  • A (pyopencl.Buffer [in]) – Buffer object storing banded matrix A.
  • offa (int [in]) – Offset in number of elements for the first element in banded matrix A.
  • lda (int [in]) – Leading dimension of banded matrix A. It cannot be less than ( KL + KU + 1 ).
  • X (pyopencl.Buffer [in]) – Buffer object storing vector X.
  • offx (int [in]) – Offset of first element of vector X in buffer object. Counted in elements.
  • incx (int [in]) – Increment for the elements of X. Must not be zero.
  • beta (float [in]) – The factor of the vector Y.
  • Y (pyopencl.Buffer [out]) – Buffer object storing the vector y.
  • offy (int [in]) – Offset of first element of vector Y in buffer object. Counted in elements.
  • incy (int [in]) – Increment for the elements of Y. Must not be zero.
  • 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.clblasSgbmv(order, trans, M, N, KL, KU, alpha, A, offa, lda, X, offx, incx, beta, Y, offy, incy, commandQueues, eventWaitList)

wraps: clblasSgbmv

Matrix-vector product with a general rectangular banded matrix and float elements. Matrix-vector products:

  • ( Y ← α A X + β Y )
  • ( Y ← α ATX + β Y )
Parameters:
  • order (clblasOrder [in]) – Row/column order.
  • trans (clblasTranspose [in]) – How matrix A is to be transposed.
  • M (int [in]) – Number of rows in banded matrix A.
  • N (int [in]) – Number of columns in banded matrix A.
  • KL (int [in]) – Number of sub-diagonals in banded matrix A.
  • KU (int [in]) – Number of super-diagonals in banded matrix A.
  • alpha (float [in]) – The factor of banded matrix A.
  • A (pyopencl.Buffer [in]) – Buffer object storing banded matrix A.
  • offa (int [in]) – Offset in number of elements for the first element in banded matrix A.
  • lda (int [in]) – Leading dimension of banded matrix A. It cannot be less than ( KL + KU + 1 ).
  • X (pyopencl.Buffer [in]) – Buffer object storing vector X.
  • offx (int [in]) – Offset of first element of vector X in buffer object. Counted in elements.
  • incx (int [in]) – Increment for the elements of X. Must not be zero.
  • beta (float [in]) – The factor of the vector Y.
  • Y (pyopencl.Buffer [out]) – Buffer object storing the vector y.
  • offy (int [in]) – Offset of first element of vector Y in buffer object. Counted in elements.
  • incy (int [in]) – Increment for the elements of Y. Must not be zero.
  • 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.clblasZgbmv(order, trans, M, N, KL, KU, alpha, A, offa, lda, X, offx, incx, beta, Y, offy, incy, commandQueues, eventWaitList)

wraps: clblasZgbmv

Matrix-vector product with a general rectangular banded matrix and double-complex elements. Matrix-vector products:

  • ( Y ← α A X + β Y )
  • ( Y ← α ATX + β Y )
Parameters:
  • order (clblasOrder [in]) – Row/column order.
  • trans (clblasTranspose [in]) – How matrix A is to be transposed.
  • M (int [in]) – Number of rows in banded matrix A.
  • N (int [in]) – Number of columns in banded matrix A.
  • KL (int [in]) – Number of sub-diagonals in banded matrix A.
  • KU (int [in]) – Number of super-diagonals in banded matrix A.
  • alpha (complex [in]) – The factor of banded matrix A.
  • A (pyopencl.Buffer [in]) – Buffer object storing banded matrix A.
  • offa (int [in]) – Offset in number of elements for the first element in banded matrix A.
  • lda (int [in]) – Leading dimension of banded matrix A. It cannot be less than ( KL + KU + 1 ).
  • X (pyopencl.Buffer [in]) – Buffer object storing vector X.
  • offx (int [in]) – Offset of first element of vector X in buffer object. Counted in elements.
  • incx (int [in]) – Increment for the elements of X. Must not be zero.
  • beta (complex [in]) – The factor of the vector Y.
  • Y (pyopencl.Buffer [out]) – Buffer object storing the vector y.
  • offy (int [in]) – Offset of first element of vector Y in buffer object. Counted in elements.
  • incy (int [in]) – Increment for the elements of Y. Must not be zero.
  • 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.