MAGMA  2.3.0
Matrix Algebra for GPU and Multicore Architectures
 All Classes Files Functions Friends Groups Pages

\( \text{argmax}_i\; |x_i| \) More...

Functions

magma_int_t magma_icamax (magma_int_t n, magmaFloatComplex_const_ptr dx, magma_int_t incx, magma_queue_t queue)
 
magma_int_t magma_idamax (magma_int_t n, magmaDouble_const_ptr dx, magma_int_t incx, magma_queue_t queue)
 
magma_int_t magma_isamax (magma_int_t n, magmaFloat_const_ptr dx, magma_int_t incx, magma_queue_t queue)
 
magma_int_t magma_izamax (magma_int_t n, magmaDoubleComplex_const_ptr dx, magma_int_t incx, magma_queue_t queue)
 

Detailed Description

\( \text{argmax}_i\; |x_i| \)

Function Documentation

magma_int_t magma_icamax ( magma_int_t  n,
magmaFloatComplex_const_ptr  dx,
magma_int_t  incx,
magma_queue_t  queue 
)
Returns
Index of element of vector x having max. absolute value; \( \text{argmax}_i\; | real(x_i) | + | imag(x_i) | \).
Parameters
[in]nNumber of elements in vector x. n >= 0.
[in]dxCOMPLEX array on GPU device. The n element vector x of dimension (1 + (n-1)*incx).
[in]incxStride between consecutive elements of dx. incx > 0.
[in]queuemagma_queue_t Queue to execute in.
magma_int_t magma_idamax ( magma_int_t  n,
magmaDouble_const_ptr  dx,
magma_int_t  incx,
magma_queue_t  queue 
)
Returns
Index of element of vector x having max. absolute value; \( \text{argmax}_i\; | real(x_i) | + | imag(x_i) | \).
Parameters
[in]nNumber of elements in vector x. n >= 0.
[in]dxDOUBLE PRECISION array on GPU device. The n element vector x of dimension (1 + (n-1)*incx).
[in]incxStride between consecutive elements of dx. incx > 0.
[in]queuemagma_queue_t Queue to execute in.
magma_int_t magma_isamax ( magma_int_t  n,
magmaFloat_const_ptr  dx,
magma_int_t  incx,
magma_queue_t  queue 
)
Returns
Index of element of vector x having max. absolute value; \( \text{argmax}_i\; | real(x_i) | + | imag(x_i) | \).
Parameters
[in]nNumber of elements in vector x. n >= 0.
[in]dxREAL array on GPU device. The n element vector x of dimension (1 + (n-1)*incx).
[in]incxStride between consecutive elements of dx. incx > 0.
[in]queuemagma_queue_t Queue to execute in.
magma_int_t magma_izamax ( magma_int_t  n,
magmaDoubleComplex_const_ptr  dx,
magma_int_t  incx,
magma_queue_t  queue 
)
Returns
Index of element of vector x having max. absolute value; \( \text{argmax}_i\; | real(x_i) | + | imag(x_i) | \).
Parameters
[in]nNumber of elements in vector x. n >= 0.
[in]dxCOMPLEX_16 array on GPU device. The n element vector x of dimension (1 + (n-1)*incx).
[in]incxStride between consecutive elements of dx. incx > 0.
[in]queuemagma_queue_t Queue to execute in.