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

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

Functions

void magma_cscal (magma_int_t n, magmaFloatComplex alpha, magmaFloatComplex_ptr dx, magma_int_t incx, magma_queue_t queue)
 Scales a vector by a constant; \( x = \alpha x \). More...
 
void magma_csscal (magma_int_t n, float alpha, magmaFloatComplex_ptr dx, magma_int_t incx, magma_queue_t queue)
 Scales a vector by a real constant; \( x = \alpha x \). More...
 
void magma_dscal (magma_int_t n, double alpha, magmaDouble_ptr dx, magma_int_t incx, magma_queue_t queue)
 Scales a vector by a constant; \( x = \alpha x \). More...
 
void magma_sscal (magma_int_t n, float alpha, magmaFloat_ptr dx, magma_int_t incx, magma_queue_t queue)
 Scales a vector by a constant; \( x = \alpha x \). More...
 
void magma_zscal (magma_int_t n, magmaDoubleComplex alpha, magmaDoubleComplex_ptr dx, magma_int_t incx, magma_queue_t queue)
 Scales a vector by a constant; \( x = \alpha x \). More...
 
void magma_zdscal (magma_int_t n, double alpha, magmaDoubleComplex_ptr dx, magma_int_t incx, magma_queue_t queue)
 Scales a vector by a real constant; \( x = \alpha x \). More...
 

Detailed Description

\( x = \alpha x \)

Function Documentation

void magma_cscal ( magma_int_t  n,
magmaFloatComplex  alpha,
magmaFloatComplex_ptr  dx,
magma_int_t  incx,
magma_queue_t  queue 
)

Scales a vector by a constant; \( x = \alpha x \).

Parameters
[in]nNumber of elements in vector x. n >= 0.
[in]alphaScalar \( \alpha \)
[in,out]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.
void magma_csscal ( magma_int_t  n,
float  alpha,
magmaFloatComplex_ptr  dx,
magma_int_t  incx,
magma_queue_t  queue 
)

Scales a vector by a real constant; \( x = \alpha x \).

Parameters
[in]nNumber of elements in vector x. n >= 0.
[in]alphaScalar \( \alpha \) (real)
[in,out]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.
void magma_dscal ( magma_int_t  n,
double  alpha,
magmaDouble_ptr  dx,
magma_int_t  incx,
magma_queue_t  queue 
)

Scales a vector by a constant; \( x = \alpha x \).

Parameters
[in]nNumber of elements in vector x. n >= 0.
[in]alphaScalar \( \alpha \)
[in,out]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.
void magma_sscal ( magma_int_t  n,
float  alpha,
magmaFloat_ptr  dx,
magma_int_t  incx,
magma_queue_t  queue 
)

Scales a vector by a constant; \( x = \alpha x \).

Parameters
[in]nNumber of elements in vector x. n >= 0.
[in]alphaScalar \( \alpha \)
[in,out]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.
void magma_zscal ( magma_int_t  n,
magmaDoubleComplex  alpha,
magmaDoubleComplex_ptr  dx,
magma_int_t  incx,
magma_queue_t  queue 
)

Scales a vector by a constant; \( x = \alpha x \).

Parameters
[in]nNumber of elements in vector x. n >= 0.
[in]alphaScalar \( \alpha \)
[in,out]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.
void magma_zdscal ( magma_int_t  n,
double  alpha,
magmaDoubleComplex_ptr  dx,
magma_int_t  incx,
magma_queue_t  queue 
)

Scales a vector by a real constant; \( x = \alpha x \).

Parameters
[in]nNumber of elements in vector x. n >= 0.
[in]alphaScalar \( \alpha \) (real)
[in,out]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.