MAGMA  2.0.2
Matrix Algebra for GPU and Multicore Architectures
single-complex precision

Functions

float magma_cblas_scasum (magma_int_t n, const magmaFloatComplex *x, magma_int_t incx)
 Returns the sum of absolute values of vector x; i.e., one norm. More...
 
magmaFloatComplex magma_cblas_cdotc (magma_int_t n, const magmaFloatComplex *x, magma_int_t incx, const magmaFloatComplex *y, magma_int_t incy)
 Returns dot product of vectors x and y; \( x^H y \). More...
 
magmaFloatComplex magma_cblas_cdotu (magma_int_t n, const magmaFloatComplex *x, magma_int_t incx, const magmaFloatComplex *y, magma_int_t incy)
 Returns dot product (unconjugated) of vectors x and y; \( x^T y \). More...
 
magma_int_t magma_icamax (magma_int_t n, magmaFloatComplex_const_ptr dx, magma_int_t incx)
 Returns index of element of vector x having max. More...
 
magma_int_t magma_icamin (magma_int_t n, magmaFloatComplex_const_ptr dx, magma_int_t incx)
 Returns index of element of vector x having min. More...
 
float magma_scasum (magma_int_t n, magmaFloatComplex_const_ptr dx, magma_int_t incx)
 Returns the sum of absolute values of vector x; i.e., one norm. More...
 
void magma_caxpy (magma_int_t n, magmaFloatComplex alpha, magmaFloatComplex_const_ptr dx, magma_int_t incx, magmaFloatComplex_ptr dy, magma_int_t incy)
 Constant times a vector plus a vector; \( y = \alpha x + y \). More...
 
void magma_ccopy (magma_int_t n, magmaFloatComplex_const_ptr dx, magma_int_t incx, magmaFloatComplex_ptr dy, magma_int_t incy)
 Copy vector x to vector y; \( y = x \). More...
 
magmaFloatComplex magma_cdotc (magma_int_t n, magmaFloatComplex_const_ptr dx, magma_int_t incx, magmaFloatComplex_const_ptr dy, magma_int_t incy)
 Returns dot product of vectors x and y; \( x^H y \). More...
 
magmaFloatComplex magma_cdotu (magma_int_t n, magmaFloatComplex_const_ptr dx, magma_int_t incx, magmaFloatComplex_const_ptr dy, magma_int_t incy)
 Returns dot product (unconjugated) of vectors x and y; \( x^T y \). More...
 
float magma_scnrm2 (magma_int_t n, magmaFloatComplex_const_ptr dx, magma_int_t incx)
 Returns 2-norm of vector x. More...
 
void magma_crot (magma_int_t n, magmaFloatComplex_ptr dx, magma_int_t incx, magmaFloatComplex_ptr dy, magma_int_t incy, float c, magmaFloatComplex s)
 Apply Givens plane rotation, where cos (c) is real and sin (s) is complex. More...
 
void magma_csrot (magma_int_t n, magmaFloatComplex_ptr dx, magma_int_t incx, magmaFloatComplex_ptr dy, magma_int_t incy, float c, float s)
 Apply Givens plane rotation, where cos (c) and sin (s) are real. More...
 
void magma_cscal (magma_int_t n, magmaFloatComplex alpha, magmaFloatComplex_ptr dx, magma_int_t incx)
 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)
 Scales a vector by a real constant; \( x = \alpha x \). More...
 
void magma_cswap (magma_int_t n, magmaFloatComplex_ptr dx, magma_int_t incx, magmaFloatComplex_ptr dy, magma_int_t incy)
 Swap vector x and y; \( x <-> y \). More...
 
magma_int_t magma_icamax_q (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. More...
 
magma_int_t magma_icamin_q (magma_int_t n, magmaFloatComplex_const_ptr dx, magma_int_t incx, magma_queue_t queue)
 Returns index of element of vector x having min. More...
 
float magma_scasum_q (magma_int_t n, magmaFloatComplex_const_ptr dx, magma_int_t incx, magma_queue_t queue)
 Returns the sum of absolute values of vector x; i.e., one norm. More...
 
void magma_caxpy_q (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_ccopy_q (magma_int_t n, magmaFloatComplex_const_ptr dx, magma_int_t incx, magmaFloatComplex_ptr dy, magma_int_t incy, magma_queue_t queue)
 Copy vector x to vector y; \( y = x \). More...
 
magmaFloatComplex magma_cdotc (magma_int_t n, magmaFloatComplex_const_ptr dx, magma_int_t incx, magmaFloatComplex_const_ptr dy, magma_int_t incy, magma_queue_t queue)
 Returns dot product of vectors x and y; \( x^H y \). More...
 
magmaFloatComplex magma_cdotu (magma_int_t n, magmaFloatComplex_const_ptr dx, magma_int_t incx, magmaFloatComplex_const_ptr dy, magma_int_t incy, magma_queue_t queue)
 Returns dot product (unconjugated) of vectors x and y; \( x^T y \). More...
 
float magma_scnrm2_q (magma_int_t n, magmaFloatComplex_const_ptr dx, magma_int_t incx, magma_queue_t queue)
 Returns 2-norm of vector x. More...
 
void magma_crot_q (magma_int_t n, magmaFloatComplex_ptr dx, magma_int_t incx, magmaFloatComplex_ptr dy, magma_int_t incy, float c, magmaFloatComplex s, magma_queue_t queue)
 Apply Givens plane rotation, where cos (c) is real and sin (s) is complex. More...
 
void magma_csrot_q (magma_int_t n, magmaFloatComplex_ptr dx, magma_int_t incx, magmaFloatComplex_ptr dy, magma_int_t incy, float c, float s, magma_queue_t queue)
 Apply Givens plane rotation, where cos (c) and sin (s) are real. More...
 
void magma_cscal_q (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_q (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_cswap_q (magma_int_t n, magmaFloatComplex_ptr dx, magma_int_t incx, magmaFloatComplex_ptr dy, magma_int_t incy, magma_queue_t queue)
 Swap vector x and y; \( x <-> y \). More...
 
void magmablas_caxpycp (magma_int_t m, magmaFloatComplex_ptr r, magmaFloatComplex_ptr x, magmaFloatComplex_const_ptr b)
 
void magmablas_csetmatrix_transpose (magma_int_t m, magma_int_t n, const magmaFloatComplex *hA, magma_int_t lda, magmaFloatComplex_ptr dAT, magma_int_t ldda, magmaFloatComplex_ptr dwork, magma_int_t lddwork, magma_int_t nb)
 
void magmablas_cswap (magma_int_t n, magmaFloatComplex_ptr dx, magma_int_t incx, magmaFloatComplex_ptr dy, magma_int_t incy)
 

Detailed Description

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 
)

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.
void magma_caxpy_q ( 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.
magmaFloatComplex magma_cblas_cdotc ( magma_int_t  n,
const magmaFloatComplex *  x,
magma_int_t  incx,
const magmaFloatComplex *  y,
magma_int_t  incy 
)

Returns dot product of vectors x and y; \( x^H y \).

To avoid dependence on CBLAS and incompatability issues between BLAS libraries, MAGMA uses its own implementation, following BLAS reference.

Parameters
[in]nNumber of elements in vector x and y. n >= 0.
[in]xCOMPLEX array on CPU host. The n element vector x of dimension (1 + (n-1)*incx).
[in]incxStride between consecutive elements of x. incx > 0.
[in]yCOMPLEX array on CPU host. The n element vector y of dimension (1 + (n-1)*incy).
[in]incyStride between consecutive elements of dy. incy > 0.
magmaFloatComplex magma_cblas_cdotu ( magma_int_t  n,
const magmaFloatComplex *  x,
magma_int_t  incx,
const magmaFloatComplex *  y,
magma_int_t  incy 
)

Returns dot product (unconjugated) of vectors x and y; \( x^T y \).

To avoid dependence on CBLAS and incompatability issues between BLAS libraries, MAGMA uses its own implementation, following BLAS reference.

Parameters
[in]nNumber of elements in vector x and y. n >= 0.
[in]xCOMPLEX array on CPU host. The n element vector x of dimension (1 + (n-1)*incx).
[in]incxStride between consecutive elements of x. incx > 0.
[in]yCOMPLEX array on CPU host. The n element vector y of dimension (1 + (n-1)*incy).
[in]incyStride between consecutive elements of dy. incy > 0.
float magma_cblas_scasum ( magma_int_t  n,
const magmaFloatComplex *  x,
magma_int_t  incx 
)

Returns the sum of absolute values of vector x; i.e., one norm.

To avoid dependence on CBLAS and incompatability issues between BLAS libraries, MAGMA uses its own implementation, following BLAS reference.

Parameters
[in]nNumber of elements in vector x. n >= 0.
[in]xCOMPLEX array on CPU host. The n element vector x of dimension (1 + (n-1)*incx).
[in]incxStride between consecutive elements of x. incx > 0.
void magma_ccopy ( magma_int_t  n,
magmaFloatComplex_const_ptr  dx,
magma_int_t  incx,
magmaFloatComplex_ptr  dy,
magma_int_t  incy 
)

Copy vector x to vector y; \( y = x \).

Parameters
[in]nNumber of elements in vectors x and y. 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.
[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.
void magma_ccopy_q ( magma_int_t  n,
magmaFloatComplex_const_ptr  dx,
magma_int_t  incx,
magmaFloatComplex_ptr  dy,
magma_int_t  incy,
magma_queue_t  queue 
)

Copy vector x to vector y; \( y = x \).

Parameters
[in]nNumber of elements in vectors x and y. 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.
[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.
magmaFloatComplex magma_cdotc ( magma_int_t  n,
magmaFloatComplex_const_ptr  dx,
magma_int_t  incx,
magmaFloatComplex_const_ptr  dy,
magma_int_t  incy 
)

Returns dot product of vectors x and y; \( x^H y \).

Parameters
[in]nNumber of elements in vector x and y. 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]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.
magmaFloatComplex magma_cdotc ( magma_int_t  n,
magmaFloatComplex_const_ptr  dx,
magma_int_t  incx,
magmaFloatComplex_const_ptr  dy,
magma_int_t  incy,
magma_queue_t  queue 
)

Returns dot product of vectors x and y; \( x^H y \).

Parameters
[in]nNumber of elements in vector x and y. 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]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.
magmaFloatComplex magma_cdotu ( magma_int_t  n,
magmaFloatComplex_const_ptr  dx,
magma_int_t  incx,
magmaFloatComplex_const_ptr  dy,
magma_int_t  incy 
)

Returns dot product (unconjugated) of vectors x and y; \( x^T y \).

Parameters
[in]nNumber of elements in vector x and y. 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]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.
magmaFloatComplex magma_cdotu ( magma_int_t  n,
magmaFloatComplex_const_ptr  dx,
magma_int_t  incx,
magmaFloatComplex_const_ptr  dy,
magma_int_t  incy,
magma_queue_t  queue 
)

Returns dot product (unconjugated) of vectors x and y; \( x^T y \).

Parameters
[in]nNumber of elements in vector x and y. 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]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_crot ( magma_int_t  n,
magmaFloatComplex_ptr  dx,
magma_int_t  incx,
magmaFloatComplex_ptr  dy,
magma_int_t  incy,
float  c,
magmaFloatComplex  s 
)

Apply Givens plane rotation, where cos (c) is real and sin (s) is complex.

Parameters
[in]nNumber of elements in vector x and y. n >= 0.
[in,out]dxCOMPLEX array on GPU device. The n element vector x of dimension (1 + (n-1)*incx). On output, overwritten with c*x + s*y.
[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). On output, overwritten with -conj(s)*x + c*y.
[in]incyStride between consecutive elements of dy. incy != 0.
[in]cfloat. cosine.
[in]sCOMPLEX. sine. c and s define a rotation [ c s ] where c*c + s*conj(s) = 1. [ -conj(s) c ]
void magma_crot_q ( magma_int_t  n,
magmaFloatComplex_ptr  dx,
magma_int_t  incx,
magmaFloatComplex_ptr  dy,
magma_int_t  incy,
float  c,
magmaFloatComplex  s,
magma_queue_t  queue 
)

Apply Givens plane rotation, where cos (c) is real and sin (s) is complex.

Parameters
[in]nNumber of elements in vector x and y. n >= 0.
[in,out]dxCOMPLEX array on GPU device. The n element vector x of dimension (1 + (n-1)*incx). On output, overwritten with c*x + s*y.
[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). On output, overwritten with -conj(s)*x + c*y.
[in]incyStride between consecutive elements of dy. incy != 0.
[in]cfloat. cosine.
[in]sCOMPLEX. sine. c and s define a rotation [ c s ] where c*c + s*conj(s) = 1. [ -conj(s) c ]
[in]queuemagma_queue_t Queue to execute in.
void magma_cscal ( magma_int_t  n,
magmaFloatComplex  alpha,
magmaFloatComplex_ptr  dx,
magma_int_t  incx 
)

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.
void magma_cscal_q ( 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_csrot ( magma_int_t  n,
magmaFloatComplex_ptr  dx,
magma_int_t  incx,
magmaFloatComplex_ptr  dy,
magma_int_t  incy,
float  c,
float  s 
)

Apply Givens plane rotation, where cos (c) and sin (s) are real.

Parameters
[in]nNumber of elements in vector x and y. n >= 0.
[in,out]dxCOMPLEX array on GPU device. The n element vector x of dimension (1 + (n-1)*incx). On output, overwritten with c*x + s*y.
[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). On output, overwritten with -conj(s)*x + c*y.
[in]incyStride between consecutive elements of dy. incy != 0.
[in]cfloat. cosine.
[in]sfloat. sine. c and s define a rotation [ c s ] where c*c + s*s = 1. [ -s c ]
void magma_csrot_q ( magma_int_t  n,
magmaFloatComplex_ptr  dx,
magma_int_t  incx,
magmaFloatComplex_ptr  dy,
magma_int_t  incy,
float  c,
float  s,
magma_queue_t  queue 
)

Apply Givens plane rotation, where cos (c) and sin (s) are real.

Parameters
[in]nNumber of elements in vector x and y. n >= 0.
[in,out]dxCOMPLEX array on GPU device. The n element vector x of dimension (1 + (n-1)*incx). On output, overwritten with c*x + s*y.
[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). On output, overwritten with -conj(s)*x + c*y.
[in]incyStride between consecutive elements of dy. incy != 0.
[in]cfloat. cosine.
[in]sfloat. sine. c and s define a rotation [ c s ] where c*c + s*s = 1. [ -s c ]
[in]queuemagma_queue_t Queue to execute in.
void magma_csscal ( magma_int_t  n,
float  alpha,
magmaFloatComplex_ptr  dx,
magma_int_t  incx 
)

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.
void magma_csscal_q ( 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_cswap ( magma_int_t  n,
magmaFloatComplex_ptr  dx,
magma_int_t  incx,
magmaFloatComplex_ptr  dy,
magma_int_t  incy 
)

Swap vector x and y; \( x <-> y \).

Parameters
[in]nNumber of elements in vector x and y. n >= 0.
[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,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.
void magma_cswap_q ( magma_int_t  n,
magmaFloatComplex_ptr  dx,
magma_int_t  incx,
magmaFloatComplex_ptr  dy,
magma_int_t  incy,
magma_queue_t  queue 
)

Swap vector x and y; \( x <-> y \).

Parameters
[in]nNumber of elements in vector x and y. n >= 0.
[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,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.
magma_int_t magma_icamax ( magma_int_t  n,
magmaFloatComplex_const_ptr  dx,
magma_int_t  incx 
)

Returns index of element of vector x having max.

absolute value; i.e., max (infinity) norm.

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.
magma_int_t magma_icamax_q ( 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; i.e., max (infinity) norm.

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_icamin ( magma_int_t  n,
magmaFloatComplex_const_ptr  dx,
magma_int_t  incx 
)

Returns index of element of vector x having min.

absolute value.

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.
magma_int_t magma_icamin_q ( magma_int_t  n,
magmaFloatComplex_const_ptr  dx,
magma_int_t  incx,
magma_queue_t  queue 
)

Returns index of element of vector x having min.

absolute value.

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.
float magma_scasum ( magma_int_t  n,
magmaFloatComplex_const_ptr  dx,
magma_int_t  incx 
)

Returns the sum of absolute values of vector x; i.e., one norm.

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.
float magma_scasum_q ( magma_int_t  n,
magmaFloatComplex_const_ptr  dx,
magma_int_t  incx,
magma_queue_t  queue 
)

Returns the sum of absolute values of vector x; i.e., one norm.

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.
float magma_scnrm2 ( magma_int_t  n,
magmaFloatComplex_const_ptr  dx,
magma_int_t  incx 
)

Returns 2-norm of vector x.

Avoids unnecesary over/underflow.

Parameters
[in]nNumber of elements in vector x and y. 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.
float magma_scnrm2_q ( magma_int_t  n,
magmaFloatComplex_const_ptr  dx,
magma_int_t  incx,
magma_queue_t  queue 
)

Returns 2-norm of vector x.

Avoids unnecesary over/underflow.

Parameters
[in]nNumber of elements in vector x and y. 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.
void magmablas_caxpycp ( magma_int_t  m,
magmaFloatComplex_ptr  r,
magmaFloatComplex_ptr  x,
magmaFloatComplex_const_ptr  b 
)
See also
magmablas_caxpycp_q
void magmablas_csetmatrix_transpose ( magma_int_t  m,
magma_int_t  n,
const magmaFloatComplex *  hA,
magma_int_t  lda,
magmaFloatComplex_ptr  dAT,
magma_int_t  ldda,
magmaFloatComplex_ptr  dwork,
magma_int_t  lddwork,
magma_int_t  nb 
)
See also
magmablas_csetmatrix_transpose_q
void magmablas_cswap ( magma_int_t  n,
magmaFloatComplex_ptr  dx,
magma_int_t  incx,
magmaFloatComplex_ptr  dy,
magma_int_t  incy 
)
See also
magmablas_cswap_q