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

\( y = \alpha x + y \) More...

Functions

void magma_caxpy (magma_int_t n, magmaFloatComplex alpha, magmaFloatComplex_const_ptr dx, magma_int_t incx, magmaFloatComplex_ptr dy, magma_int_t incy, magma_queue_t queue)
 Constant times a vector plus a vector; \( y = \alpha x + y \). More...
 
void magma_daxpy (magma_int_t n, double alpha, magmaDouble_const_ptr dx, magma_int_t incx, magmaDouble_ptr dy, magma_int_t incy, magma_queue_t queue)
 Constant times a vector plus a vector; \( y = \alpha x + y \). More...
 
void magma_saxpy (magma_int_t n, float alpha, magmaFloat_const_ptr dx, magma_int_t incx, magmaFloat_ptr dy, magma_int_t incy, magma_queue_t queue)
 Constant times a vector plus a vector; \( y = \alpha x + y \). More...
 
void magma_zaxpy (magma_int_t n, magmaDoubleComplex alpha, magmaDoubleComplex_const_ptr dx, magma_int_t incx, magmaDoubleComplex_ptr dy, magma_int_t incy, magma_queue_t queue)
 Constant times a vector plus a vector; \( y = \alpha x + y \). More...
 

Detailed Description

\( y = \alpha x + y \)

Function Documentation

void magma_caxpy ( magma_int_t  n,
magmaFloatComplex  alpha,
magmaFloatComplex_const_ptr  dx,
magma_int_t  incx,
magmaFloatComplex_ptr  dy,
magma_int_t  incy,
magma_queue_t  queue 
)

Constant times a vector plus a vector; \( y = \alpha x + y \).

Parameters
[in]nNumber of elements in vectors x and y. n >= 0.
[in]alphaScalar \( \alpha \)
[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,out]dyCOMPLEX array on GPU device. The n element vector y of dimension (1 + (n-1)*incy).
[in]incyStride between consecutive elements of dy. incy != 0.
[in]queuemagma_queue_t Queue to execute in.
void magma_daxpy ( magma_int_t  n,
double  alpha,
magmaDouble_const_ptr  dx,
magma_int_t  incx,
magmaDouble_ptr  dy,
magma_int_t  incy,
magma_queue_t  queue 
)

Constant times a vector plus a vector; \( y = \alpha x + y \).

Parameters
[in]nNumber of elements in vectors x and y. n >= 0.
[in]alphaScalar \( \alpha \)
[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,out]dyDOUBLE PRECISION array on GPU device. The n element vector y of dimension (1 + (n-1)*incy).
[in]incyStride between consecutive elements of dy. incy != 0.
[in]queuemagma_queue_t Queue to execute in.
void magma_saxpy ( magma_int_t  n,
float  alpha,
magmaFloat_const_ptr  dx,
magma_int_t  incx,
magmaFloat_ptr  dy,
magma_int_t  incy,
magma_queue_t  queue 
)

Constant times a vector plus a vector; \( y = \alpha x + y \).

Parameters
[in]nNumber of elements in vectors x and y. n >= 0.
[in]alphaScalar \( \alpha \)
[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,out]dyREAL array on GPU device. The n element vector y of dimension (1 + (n-1)*incy).
[in]incyStride between consecutive elements of dy. incy != 0.
[in]queuemagma_queue_t Queue to execute in.
void magma_zaxpy ( magma_int_t  n,
magmaDoubleComplex  alpha,
magmaDoubleComplex_const_ptr  dx,
magma_int_t  incx,
magmaDoubleComplex_ptr  dy,
magma_int_t  incy,
magma_queue_t  queue 
)

Constant times a vector plus a vector; \( y = \alpha x + y \).

Parameters
[in]nNumber of elements in vectors x and y. n >= 0.
[in]alphaScalar \( \alpha \)
[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,out]dyCOMPLEX_16 array on GPU device. The n element vector y of dimension (1 + (n-1)*incy).
[in]incyStride between consecutive elements of dy. incy != 0.
[in]queuemagma_queue_t Queue to execute in.