SPR2 - Symmetric packed matrix rank 2 update¶
-
pyclblas.
clblasDspr2
(order, uplo, N, alpha, X, offx, incx, Y, offy, incy, AP, offa, commandQueues, eventWaitList)¶ wraps: clblasDspr2
Symmetric rank 2 operation with a general triangular packed-matrix and double elements. Symmetric rank 2 operation:
- ( A ← α X YT+ α Y XT+ A )
Parameters: - order (clblasOrder [in]) – Row/column order.
- uplo (clblasUplo [in]) – The triangle in matrix being referenced.
- N (int [in]) – Number of columns in matrix A.
- alpha (float [in]) – The factor 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.
- incx (int [in]) – Increment for the elements of X. Must not be zero.
- Y (pyopencl.Buffer [in]) – Buffer object storing vector Y.
- offy (int [in]) – Offset of first element of vector Y in buffer object.
- incy (int [in]) – Increment for the elements of Y. Must not be zero.
- AP (pyopencl.Buffer [out]) – Buffer object storing packed-matrix AP.
- offa (int [in]) – Offset of first element of matrix AP in buffer object.
- 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.
clblasSspr2
(order, uplo, N, alpha, X, offx, incx, Y, offy, incy, AP, offa, commandQueues, eventWaitList)¶ wraps: clblasSspr2
Symmetric rank 2 operation with a general triangular packed-matrix and float elements. Symmetric rank 2 operation:
- ( A ← α X YT+ α Y XT+ A )
Parameters: - order (clblasOrder [in]) – Row/column order.
- uplo (clblasUplo [in]) – The triangle in matrix being referenced.
- N (int [in]) – Number of columns in matrix A.
- alpha (float [in]) – The factor 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.
- incx (int [in]) – Increment for the elements of X. Must not be zero.
- Y (pyopencl.Buffer [in]) – Buffer object storing vector Y.
- offy (int [in]) – Offset of first element of vector Y in buffer object.
- incy (int [in]) – Increment for the elements of Y. Must not be zero.
- AP (pyopencl.Buffer [out]) – Buffer object storing packed-matrix AP.
- offa (int [in]) – Offset of first element of matrix AP in buffer object.
- 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.