AXPY - Scale X and add to Y¶
-
pyclblas.
clblasCaxpy
(N, alpha, X, offx, incx, Y, offy, incy, commandQueues, eventWaitList)¶ wraps: clblasCaxpy
Scale vector X of complex-float elements and add to Y.
- ( Y ← α X + Y )
Parameters: - N (int [in]) – Number of elements in vector X.
- alpha (complex [in]) – The constant factor for vector X.
- 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.
- 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.
clblasDaxpy
(N, alpha, X, offx, incx, Y, offy, incy, commandQueues, eventWaitList)¶ wraps: clblasDaxpy
Scale vector X of double elements and add to Y.
- ( Y ← α X + Y )
Parameters: - N (int [in]) – Number of elements in vector X.
- alpha (float [in]) – The constant factor for vector X.
- 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.
- 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.
clblasSaxpy
(N, alpha, X, offx, incx, Y, offy, incy, commandQueues, eventWaitList)¶ wraps: clblasSaxpy
Scale vector X of float elements and add to Y.
- ( Y ← α X + Y )
Parameters: - N (int [in]) – Number of elements in vector X.
- alpha (float [in]) – The constant factor for vector X.
- 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.
- 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.
clblasZaxpy
(N, alpha, X, offx, incx, Y, offy, incy, commandQueues, eventWaitList)¶ wraps: clblasZaxpy
Scale vector X of double-complex elements and add to Y.
- ( Y ← α X + Y )
Parameters: - N (int [in]) – Number of elements in vector X.
- alpha (complex [in]) – The constant factor for vector X.
- 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.
- 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.