clBLAS 2.0
Loading...
Searching...
No Matches
SYMV - Symmetric matrix-Vector multiplication

Functions

clblasStatus clblasSsymv (clblasOrder order, clblasUplo uplo, size_t N, cl_float alpha, const cl_mem A, size_t offA, size_t lda, const cl_mem x, size_t offx, int incx, cl_float beta, cl_mem y, size_t offy, int incy, cl_uint numCommandQueues, cl_command_queue *commandQueues, cl_uint numEventsInWaitList, const cl_event *eventWaitList, cl_event *events)
 Matrix-vector product with a symmetric matrix and float elements.
 
clblasStatus clblasDsymv (clblasOrder order, clblasUplo uplo, size_t N, cl_double alpha, const cl_mem A, size_t offA, size_t lda, const cl_mem x, size_t offx, int incx, cl_double beta, cl_mem y, size_t offy, int incy, cl_uint numCommandQueues, cl_command_queue *commandQueues, cl_uint numEventsInWaitList, const cl_event *eventWaitList, cl_event *events)
 Matrix-vector product with a symmetric matrix and double elements.
 

Detailed Description

Function Documentation

◆ clblasDsymv()

clblasStatus clblasDsymv ( clblasOrder order,
clblasUplo uplo,
size_t N,
cl_double alpha,
const cl_mem A,
size_t offA,
size_t lda,
const cl_mem x,
size_t offx,
int incx,
cl_double beta,
cl_mem y,
size_t offy,
int incy,
cl_uint numCommandQueues,
cl_command_queue * commandQueues,
cl_uint numEventsInWaitList,
const cl_event * eventWaitList,
cl_event * events )

Matrix-vector product with a symmetric matrix and double elements.

Matrix-vector products:

  • \( y \leftarrow \alpha A x + \beta y \)
Parameters
[in]orderRow/columns order.
[in]uploThe triangle in matrix being referenced.
[in]NNumber of rows and columns in matrix A.
[in]alphaThe factor of matrix A.
[in]ABuffer object storing matrix A.
[in]offAOffset of the first element of the matrix A in the buffer object. Counted in elements.
[in]ldaLeading dimension of matrix A. It cannot less than N.
[in]xBuffer object storing vector x.
[in]offxOffset of first element of vector x in buffer object. Counted in elements.
[in]incxIncrement for the elements of vector x. It cannot be zero.
[in]betaThe factor of vector y.
[out]yBuffer object storing vector y.
[in]offyOffset of first element of vector y in buffer object. Counted in elements.
[in]incyIncrement for the elements of vector y. It cannot be zero.
[in]numCommandQueuesNumber of OpenCL command queues in which the task is to be performed.
[in]commandQueuesOpenCL command queues.
[in]numEventsInWaitListNumber of events in the event wait list.
[in]eventWaitListEvent wait list.
[in]eventsEvent objects per each command queue that identify a particular kernel execution instance.
Returns
  • clblasSuccess on success;
  • clblasInvalidDevice if a target device does not support floating point arithmetic with double precision;
  • clblasInvalidValue if offA exceeds the size of A buffer object;
  • the same error codes as the clblasSsymv() function otherwise.

◆ clblasSsymv()

clblasStatus clblasSsymv ( clblasOrder order,
clblasUplo uplo,
size_t N,
cl_float alpha,
const cl_mem A,
size_t offA,
size_t lda,
const cl_mem x,
size_t offx,
int incx,
cl_float beta,
cl_mem y,
size_t offy,
int incy,
cl_uint numCommandQueues,
cl_command_queue * commandQueues,
cl_uint numEventsInWaitList,
const cl_event * eventWaitList,
cl_event * events )

Matrix-vector product with a symmetric matrix and float elements.

Matrix-vector products:

  • \( y \leftarrow \alpha A x + \beta y \)
Parameters
[in]orderRow/columns order.
[in]uploThe triangle in matrix being referenced.
[in]NNumber of rows and columns in matrix A.
[in]alphaThe factor of matrix A.
[in]ABuffer object storing matrix A.
[in]offAOffset of the first element of the matrix A in the buffer object. Counted in elements.
[in]ldaLeading dimension of matrix A. It cannot less than N.
[in]xBuffer object storing vector x.
[in]offxOffset of first element of vector x in buffer object. Counted in elements.
[in]incxIncrement for the elements of vector x. It cannot be zero.
[in]betaThe factor of vector y.
[out]yBuffer object storing vector y.
[in]offyOffset of first element of vector y in buffer object. Counted in elements.
[in]incyIncrement for the elements of vector y. It cannot be zero.
[in]numCommandQueuesNumber of OpenCL command queues in which the task is to be performed.
[in]commandQueuesOpenCL command queues.
[in]numEventsInWaitListNumber of events in the event wait list.
[in]eventWaitListEvent wait list.
[in]eventsEvent objects per each command queue that identify a particular kernel execution instance.
Returns
  • clblasSuccess on success;
  • clblasInvalidValue if offA exceeds the size of A buffer object;
  • the same error codes as the clblasSgemv() function otherwise.
Examples
example_ssymv.c.