iAMAX - Index of max absolute value

pyclblas.clblasiSamax(N, iMax, offiMax, X, offx, incx, scratchBuff, commandQueues, eventWaitList)

wraps: clblasiSamax

index of max absolute value in a float array

Parameters:
  • N (int [in]) – Number of elements in vector X.
  • iMax (pyopencl.Buffer [out]) – Buffer object storing the index of first absolute max. The index will be of type unsigned int.
  • offiMax (int [in]) – Offset for storing index in the buffer iMax 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]) – Temprory cl_mem object to store intermediate results It should be able to hold minimum of (2*N) elements.
  • 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.clblasiDamax(N, iMax, offiMax, X, offx, incx, scratchBuff, commandQueues, eventWaitList)

wraps: clblasiDamax

index of max absolute value in a double array

Parameters:
  • N (int [in]) – Number of elements in vector X.
  • iMax (pyopencl.Buffer [out]) – Buffer object storing the index of first absolute max. The index will be of type unsigned int.
  • offiMax (int [in]) – Offset for storing index in the buffer iMax 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]) – Temprory cl_mem object to store intermediate results It should be able to hold minimum of (2*N) elements.
  • 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.clblasiCamax(N, iMax, offiMax, X, offx, incx, scratchBuff, commandQueues, eventWaitList)

wraps: clblasiCamax

index of max absolute value in a complex float array

Parameters:
  • N (int [in]) – Number of elements in vector X.
  • iMax (pyopencl.Buffer [out]) – Buffer object storing the index of first absolute max. The index will be of type unsigned int.
  • offiMax (int [in]) – Offset for storing index in the buffer iMax 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]) – Temprory cl_mem object to store intermediate results It should be able to hold minimum of (2*N) elements.
  • 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.clblasiZamax(N, iMax, offiMax, X, offx, incx, scratchBuff, commandQueues, eventWaitList)

wraps: clblasiZamax

index of max absolute value in a complex double array

Parameters:
  • N (int [in]) – Number of elements in vector X.
  • iMax (pyopencl.Buffer [out]) – Buffer object storing the index of first absolute max. The index will be of type unsigned int.
  • offiMax (int [in]) – Offset for storing index in the buffer iMax 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]) – Temprory cl_mem object to store intermediate results It should be able to hold minimum of (2*N) elements.
  • 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.