GEMV  General matrixVector multiplication¶

pyclblas.
clblasCgemv
(order, transA, M, N, alpha, A, offA, lda, x, offx, incx, beta, y, offy, incy, commandQueues, eventWaitList)¶ wraps: clblasCgemv
Matrixvector product with a general rectangular matrix and float complex elements. Extended version. Matrixvector products:
 ( y ← α A x + β y )
 ( y ← α A^{T}x + β y )
Parameters:  order (clblasOrder [in]) – Row/column order.
 transA (clblasTranspose [in]) – How matrix A is to be transposed.
 M (int [in]) – Number of rows in matrix A.
 N (int [in]) – Number of columns in matrix A.
 alpha (complex [in]) – The factor of matrix A.
 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.
 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. It cannot 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. It cannot 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.
clblasDgemv
(order, transA, M, N, alpha, A, offA, lda, x, offx, incx, beta, y, offy, incy, commandQueues, eventWaitList)¶ wraps: clblasDgemv
Matrixvector product with a general rectangular matrix and double elements. Extended version. Matrixvector products:
 ( y ← α A x + β y )
 ( y ← α A^{T}x + β y )
Parameters:  order (clblasOrder [in]) – Row/column order.
 transA (clblasTranspose [in]) – How matrix A is to be transposed.
 M (int [in]) – Number of rows in matrix A.
 N (int [in]) – Number of columns in matrix A.
 alpha (float [in]) – The factor of matrix A.
 A (pyopencl.Buffer [in]) – Buffer object storing matrix A.
 offA (int [in]) – Offset of the first element of A in the buffer object. Counted in elements.
 lda (int [in]) – Leading dimension of matrix A.
 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. It cannot 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. It cannot 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.
clblasSgemv
(order, transA, M, N, alpha, A, offA, lda, x, offx, incx, beta, y, offy, incy, commandQueues, eventWaitList)¶ wraps: clblasSgemv
Matrixvector product with a general rectangular matrix and float elements. Extended version. Matrixvector products:
 ( y ← α A x + β y )
 ( y ← α A^{T}x + β y )
Parameters:  order (clblasOrder [in]) – Row/column order.
 transA (clblasTranspose [in]) – How matrix A is to be transposed.
 M (int [in]) – Number of rows in matrix A.
 N (int [in]) – Number of columns in matrix A.
 alpha (float [in]) – The factor of matrix A.
 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 N when the order parameter is set to clblasRowMajor, or less than M when the parameter is set to clblasColumnMajor.
 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. It cannot 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. It cannot 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.
clblasZgemv
(order, transA, M, N, alpha, A, offA, lda, x, offx, incx, beta, y, offy, incy, commandQueues, eventWaitList)¶ wraps: clblasZgemv
Matrixvector product with a general rectangular matrix and double complex elements. Extended version. Matrixvector products:
 ( y ← α A x + β y )
 ( y ← α A^{T}x + β y )
Parameters:  order (clblasOrder [in]) – Row/column order.
 transA (clblasTranspose [in]) – How matrix A is to be transposed.
 M (int [in]) – Number of rows in matrix A.
 N (int [in]) – Number of columns in matrix A.
 alpha (complex [in]) – The factor of matrix A.
 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.
 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. It cannot 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. It cannot 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.