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. | |
float | magma_cblas_scnrm2 (magma_int_t n, const magmaFloatComplex *x, magma_int_t incx) |
Returns 2-norm of vector x. | |
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; ![]() | |
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; ![]() | |
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. | |
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. | |
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. | |
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; ![]() | |
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; ![]() | |
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; ![]() | |
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; ![]() | |
float | magma_scnrm2 (magma_int_t n, magmaFloatComplex_const_ptr dx, magma_int_t incx) |
Returns 2-norm of vector x. | |
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. | |
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. | |
void | magma_crotm (magma_int_t n, float *dx, magma_int_t incx, float *dy, magma_int_t incy, const float *param) |
Apply modified plane rotation. | |
void | magma_crotmg (float *d1, float *d2, float *x1, const float *y1, float *param) |
Generate modified plane rotation. | |
void | magma_cscal (magma_int_t n, magmaFloatComplex alpha, magmaFloatComplex_ptr dx, magma_int_t incx) |
Scales a vector by a constant; ![]() | |
void | magma_csscal (magma_int_t n, float alpha, magmaFloatComplex_ptr dx, magma_int_t incx) |
Scales a vector by a real constant; ![]() | |
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; ![]() | |
void | magmablas_cswap_q (magma_int_t n, magmaFloatComplex_ptr dx, magma_int_t incx, magmaFloatComplex_ptr dy, magma_int_t incy, magma_queue_t queue) |
Purpose: ============= Swap vector x and y; ![]() | |
void | magmablas_cswap (magma_int_t n, magmaFloatComplex_ptr dx, magma_int_t incx, magmaFloatComplex_ptr dy, magma_int_t incy) |
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; .
[in] | n | Number of elements in vectors x and y. n >= 0. |
[in] | alpha | Scalar ![]() |
[in] | dx | COMPLEX array on GPU device. The n element vector x of dimension (1 + (n-1)*incx). |
[in] | incx | Stride between consecutive elements of dx. incx != 0. |
[in,out] | dy | COMPLEX array on GPU device. The n element vector y of dimension (1 + (n-1)*incy). |
[in] | incy | Stride between consecutive elements of dy. incy != 0. |
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; .
[in] | n | Number of elements in vector x and y. n >= 0. |
[in] | x | COMPLEX array on CPU host. The n element vector x of dimension (1 + (n-1)*incx). |
[in] | incx | Stride between consecutive elements of x. incx > 0. |
[in] | y | COMPLEX array on CPU host. The n element vector y of dimension (1 + (n-1)*incy). |
[in] | incy | Stride 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; .
[in] | n | Number of elements in vector x and y. n >= 0. |
[in] | x | COMPLEX array on CPU host. The n element vector x of dimension (1 + (n-1)*incx). |
[in] | incx | Stride between consecutive elements of x. incx > 0. |
[in] | y | COMPLEX array on CPU host. The n element vector y of dimension (1 + (n-1)*incy). |
[in] | incy | Stride 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.
[in] | n | Number of elements in vector x. n >= 0. |
[in] | x | COMPLEX array on CPU host. The n element vector x of dimension (1 + (n-1)*incx). |
[in] | incx | Stride between consecutive elements of x. incx > 0. |
float magma_cblas_scnrm2 | ( | magma_int_t | n, | |
const magmaFloatComplex * | x, | |||
magma_int_t | incx | |||
) |
Returns 2-norm of vector x.
Avoids unnecesary over/underflow.
[in] | n | Number of elements in vector x. n >= 0. |
[in] | x | COMPLEX array on CPU host. The n element vector x of dimension (1 + (n-1)*incx). |
[in] | incx | Stride 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; .
[in] | n | Number of elements in vectors x and y. n >= 0. |
[in] | dx | COMPLEX array on GPU device. The n element vector x of dimension (1 + (n-1)*incx). |
[in] | incx | Stride between consecutive elements of dx. incx != 0. |
[out] | dy | COMPLEX array on GPU device. The n element vector y of dimension (1 + (n-1)*incy). |
[in] | incy | Stride 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 | |||
) |
Returns dot product of vectors x and y; .
[in] | n | Number of elements in vector x and y. n >= 0. |
[in] | dx | COMPLEX array on GPU device. The n element vector x of dimension (1 + (n-1)*incx). |
[in] | incx | Stride between consecutive elements of dx. incx != 0. |
[in] | dy | COMPLEX array on GPU device. The n element vector y of dimension (1 + (n-1)*incy). |
[in] | incy | Stride 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 | |||
) |
Returns dot product (unconjugated) of vectors x and y; .
[in] | n | Number of elements in vector x and y. n >= 0. |
[in] | dx | COMPLEX array on GPU device. The n element vector x of dimension (1 + (n-1)*incx). |
[in] | incx | Stride between consecutive elements of dx. incx != 0. |
[in] | dy | COMPLEX array on GPU device. The n element vector y of dimension (1 + (n-1)*incy). |
[in] | incy | Stride between consecutive elements of dy. incy != 0. |
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.
[in] | n | Number of elements in vector x and y. n >= 0. |
[in,out] | dx | COMPLEX array on GPU device. The n element vector x of dimension (1 + (n-1)*incx). On output, overwritten with c*x + s*y. |
[in] | incx | Stride between consecutive elements of dx. incx != 0. |
[in,out] | dy | COMPLEX 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] | incy | Stride between consecutive elements of dy. incy != 0. |
[in] | c | float. cosine. |
[in] | s | COMPLEX. sine. c and s define a rotation [ c s ] where c*c + s*conj(s) = 1. [ -conj(s) c ] |
void magma_cscal | ( | magma_int_t | n, | |
magmaFloatComplex | alpha, | |||
magmaFloatComplex_ptr | dx, | |||
magma_int_t | incx | |||
) |
Scales a vector by a constant; .
[in] | n | Number of elements in vector x. n >= 0. |
[in] | alpha | Scalar ![]() |
[in,out] | dx | COMPLEX array on GPU device. The n element vector x of dimension (1 + (n-1)*incx). |
[in] | incx | Stride between consecutive elements of dx. incx > 0. |
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.
[in] | n | Number of elements in vector x and y. n >= 0. |
[in,out] | dx | COMPLEX array on GPU device. The n element vector x of dimension (1 + (n-1)*incx). On output, overwritten with c*x + s*y. |
[in] | incx | Stride between consecutive elements of dx. incx != 0. |
[in,out] | dy | COMPLEX 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] | incy | Stride between consecutive elements of dy. incy != 0. |
[in] | c | float. cosine. |
[in] | s | float. sine. c and s define a rotation [ c s ] where c*c + s*s = 1. [ -s c ] |
void magma_csscal | ( | magma_int_t | n, | |
float | alpha, | |||
magmaFloatComplex_ptr | dx, | |||
magma_int_t | incx | |||
) |
Scales a vector by a real constant; .
[in] | n | Number of elements in vector x. n >= 0. |
[in] | alpha | Scalar ![]() |
[in,out] | dx | COMPLEX array on GPU device. The n element vector x of dimension (1 + (n-1)*incx). |
[in] | incx | Stride between consecutive elements of dx. incx > 0. |
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; .
[in] | n | Number of elements in vector x and y. n >= 0. |
[in,out] | dx | COMPLEX array on GPU device. The n element vector x of dimension (1 + (n-1)*incx). |
[in] | incx | Stride between consecutive elements of dx. incx != 0. |
[in,out] | dy | COMPLEX array on GPU device. The n element vector y of dimension (1 + (n-1)*incy). |
[in] | incy | Stride between consecutive elements of dy. incy != 0. |
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.
[in] | n | Number of elements in vector x. n >= 0. |
[in] | dx | COMPLEX array on GPU device. The n element vector x of dimension (1 + (n-1)*incx). |
[in] | incx | Stride between consecutive elements of dx. incx > 0. |
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.
[in] | n | Number of elements in vector x. n >= 0. |
[in] | dx | COMPLEX array on GPU device. The n element vector x of dimension (1 + (n-1)*incx). |
[in] | incx | Stride between consecutive elements of dx. incx > 0. |
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.
[in] | n | Number of elements in vector x. n >= 0. |
[in] | dx | COMPLEX array on GPU device. The n element vector x of dimension (1 + (n-1)*incx). |
[in] | incx | Stride between consecutive elements of dx. incx > 0. |
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.
[in] | n | Number of elements in vector x and y. n >= 0. |
[in] | dx | COMPLEX array on GPU device. The n element vector x of dimension (1 + (n-1)*incx). |
[in] | incx | Stride between consecutive elements of dx. incx > 0. |
void magmablas_cswap | ( | magma_int_t | n, | |
magmaFloatComplex_ptr | dx, | |||
magma_int_t | incx, | |||
magmaFloatComplex_ptr | dy, | |||
magma_int_t | incy | |||
) |
void magmablas_cswap_q | ( | magma_int_t | n, | |
magmaFloatComplex_ptr | dx, | |||
magma_int_t | incx, | |||
magmaFloatComplex_ptr | dy, | |||
magma_int_t | incy, | |||
magma_queue_t | queue | |||
) |
Purpose: ============= Swap vector x and y; .
[in] | n | Number of elements in vector x and y. n >= 0. |
[in,out] | dx | COMPLEX array on GPU device. The n element vector x of dimension (1 + (n-1)*incx). |
[in] | incx | Stride between consecutive elements of dx. incx != 0. |
[in,out] | dy | COMPLEX array on GPU device. The n element vector y of dimension (1 + (n-1)*incy). |
[in] | incy | Stride between consecutive elements of dy. incy != 0. |
[in] | queue | magma_queue_t Queue to execute in. |