ASUM - Sum of absolute values¶
-
pyclblas.
clblasDasum
(N, asum, offAsum, X, offx, incx, scratchBuff, commandQueues, eventWaitList)¶ wraps: clblasDasum
absolute sum of values of a vector containing double elements
Parameters: - N (int [in]) – Number of elements in vector X.
- asum (pyopencl.Buffer [out]) – Buffer object that will contain the absoulte sum value.
- offAsum (int [in]) – Offset to absoule sum in asum buffer object. Counted in elements.
- 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.
- scratchBuff (pyopencl.Buffer [in]) – Temporary cl_mem scratch buffer object of minimum size 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.
clblasSasum
(N, asum, offAsum, X, offx, incx, scratchBuff, commandQueues, eventWaitList)¶ wraps: clblasSasum
absolute sum of values of a vector containing float elements
Parameters: - N (int [in]) – Number of elements in vector X.
- asum (pyopencl.Buffer [out]) – Buffer object that will contain the absoule sum value.
- offAsum (int [in]) – Offset to absolute sum in asum buffer object. Counted in elements.
- 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.
- scratchBuff (pyopencl.Buffer [in]) – Temporary cl_mem scratch buffer object of minimum size 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.
clblasScasum
(N, asum, offAsum, X, offx, incx, scratchBuff, commandQueues, eventWaitList)¶ wraps: clblasScasum
absolute sum of values of a vector containing float-complex elements
Parameters: - N (int [in]) – Number of elements in vector X.
- asum (pyopencl.Buffer [out]) – Buffer object that will contain the absolute sum value.
- offAsum (int [in]) – Offset to absolute sum in asum buffer object. Counted in elements.
- 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.
- scratchBuff (pyopencl.Buffer [in]) – Temporary cl_mem scratch buffer object of minimum size 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.
clblasDzasum
(N, asum, offAsum, X, offx, incx, scratchBuff, commandQueues, eventWaitList)¶ wraps: clblasDzasum
absolute sum of values of a vector containing double-complex elements
Parameters: - N (int [in]) – Number of elements in vector X.
- asum (pyopencl.Buffer [out]) – Buffer object that will contain the absolute sum value.
- offAsum (int [in]) – Offset to absolute sum in asum buffer object. Counted in elements.
- 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.
- scratchBuff (pyopencl.Buffer [in]) – Temporary cl_mem scratch buffer object of minimum size 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.