SWAP - Swap elements from 2 vectors¶
-
pyclblas.
clblasCswap
(N, X, offx, incx, Y, offy, incy, commandQueues, eventWaitList)¶ wraps: clblasCswap
interchanges two vectors of complex-float elements.
Parameters: - N (int [in]) – Number of elements in vector X.
- X (pyopencl.Buffer [out]) – 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.
clblasDswap
(N, X, offx, incx, Y, offy, incy, commandQueues, eventWaitList)¶ wraps: clblasDswap
interchanges two vectors of double.
Parameters: - N (int [in]) – Number of elements in vector X.
- X (pyopencl.Buffer [out]) – 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.
clblasSswap
(N, X, offx, incx, Y, offy, incy, commandQueues, eventWaitList)¶ wraps: clblasSswap
interchanges two vectors of float.
Parameters: - N (int [in]) – Number of elements in vector X.
- X (pyopencl.Buffer [out]) – 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.
clblasZswap
(N, X, offx, incx, Y, offy, incy, commandQueues, eventWaitList)¶ wraps: clblasZswap
interchanges two vectors of double-complex elements.
Parameters: - N (int [in]) – Number of elements in vector X.
- X (pyopencl.Buffer [out]) – 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.