Intel clBLAS
BLAS Level 1 Complex

Functions

iclblasStatus_t iclblasCcopy (iclblasHandle_t handle, int n, oclComplex_t *x, int incx, oclComplex_t *y, int incy)
 Copy the elements from the vector x to the vector y. More...
 
iclblasStatus_t iclblasCscal (iclblasHandle_t handle, int n, const oclComplex_t *alpha, oclComplex_t *x, int incx)
 Multiply the complex vector by the scalar. More...
 
iclblasStatus_t iclblasCsscal (iclblasHandle_t handle, int n, const float *alpha, oclComplex_t *x, int incx)
 Multiply the complex vector by the scalar. More...
 
iclblasStatus_t iclblasCswap (iclblasHandle_t handle, int n, oclComplex_t *x, int incx, oclComplex_t *y, int incy)
 Interchanges two complex vectors x and y. More...
 
iclblasStatus_t iclblasCdotu (iclblasHandle_t handle, int n, oclComplex_t *x, int incx, oclComplex_t *y, int incy, oclComplex_t *result)
 Computes the dot product from complex vector x and vector y. More...
 
iclblasStatus_t iclblasScnrm2 (iclblasHandle_t handle, int n, oclComplex_t *x, int incx, float *result)
 Computes the Euclidean norm of the complex vector x. More...
 
iclblasStatus_t iclblasIcamax (iclblasHandle_t handle, int n, oclComplex_t *x, int incx, int *result)
 Computes the first index of the highest magnitude value in complex vector x. More...
 
iclblasStatus_t iclblasIcamin (iclblasHandle_t handle, int n, oclComplex_t *x, int incx, int *result)
 Computes the first index of the lowest magnitude value in complex vector x. More...
 
iclblasStatus_t iclblasCaxpy (iclblasHandle_t handle, int n, const oclComplex_t *alpha, oclComplex_t *x, int incx, oclComplex_t *y, int incy)
 Multiply the complex vector x by the complex scalar and add it to the complex vector y. More...
 
iclblasStatus_t iclblasCrotg (iclblasHandle_t handle, oclComplex_t *a, oclComplex_t *b, float *c, oclComplex_t *s)
 Creates the Givens rotation matrix. More...
 
iclblasStatus_t iclblasCdotc (iclblasHandle_t handle, int n, oclComplex_t *x, int incx, oclComplex_t *y, int incy, oclComplex_t *result)
 Computes the dot product from complex vector x and vector y. More...
 
iclblasStatus_t iclblasCrot (iclblasHandle_t handle, int n, oclComplex_t *x, int incx, oclComplex_t *y, int incy, const float *c, const oclComplex_t *s)
 Applies Givens rotation matrix. More...
 
iclblasStatus_t iclblasCsrot (iclblasHandle_t handle, int n, oclComplex_t *x, int incx, oclComplex_t *y, int incy, const float *c, const float *s)
 Applies Givens rotation matrix. More...
 
iclblasStatus_t iclblasScasum (iclblasHandle_t handle, int n, oclComplex_t *x, int incx, float *result)
 Computes the sum of the absolute values from vector x. More...
 

Detailed Description

Function Documentation

◆ iclblasCaxpy()

iclblasStatus_t iclblasCaxpy ( iclblasHandle_t  handle,
int  n,
const oclComplex_t alpha,
oclComplex_t x,
int  incx,
oclComplex_t y,
int  incy 
)

Multiply the complex vector x by the complex scalar and add it to the complex vector y.

y = alpha * x + y

Where x and y are complex n element vectors

Parameters
[in]handlehandle to the library context
[in]nnumber of elements in x and y
[in]alphacomplex scalar used in multiplication
[in]xcomplex vector of size at least n * incx
[in]incxstride between elements in x; should be at least 1
[in,out]ycomplex vector of size at least n * incy
[in]incystride between elements in y; should be at least 1

◆ iclblasCcopy()

iclblasStatus_t iclblasCcopy ( iclblasHandle_t  handle,
int  n,
oclComplex_t x,
int  incx,
oclComplex_t y,
int  incy 
)

Copy the elements from the vector x to the vector y.

y = x

Where x and y are complex n element vectors

Parameters
[in]handlehandle to the library context
[in]nnumber of elements in x and y
[in]xvector of size at least n * incx
[in]incxstride between elements in x; should be at least 1
[in,out]yvector of size at least n * incy
[in]incystride between elements in y; should be at least 1

◆ iclblasCdotc()

iclblasStatus_t iclblasCdotc ( iclblasHandle_t  handle,
int  n,
oclComplex_t x,
int  incx,
oclComplex_t y,
int  incy,
oclComplex_t result 
)

Computes the dot product from complex vector x and vector y.

result = x^H * y

Where x and y are complex n element vectors; and H - complex conjugation on elements of x

Parameters
[in]handlehandle to the library context
[in]nnumber of elements in x and y
[in]xcomplex vector of size at least n * incx
[in]incxstride between elements in x; should be at least 1
[in]ycomplex vector of size at least n * incy
[in]incystride between elements in y; should be at least 1
[out]resultcalculated dot product

◆ iclblasCdotu()

iclblasStatus_t iclblasCdotu ( iclblasHandle_t  handle,
int  n,
oclComplex_t x,
int  incx,
oclComplex_t y,
int  incy,
oclComplex_t result 
)

Computes the dot product from complex vector x and vector y.

result = x^T * y

Where x and y are complex n element vectors

Parameters
[in]handlehandle to the library context
[in]nnumber of elements in x and y
[in]xcomplex vector of size at least n * incx
[in]incxstride between elements in x; should be at least 1
[in]ycomplex vector of size at least n * incy
[in]incystride between elements in y; should be at least 1
[out]resultcalculated dot product

◆ iclblasCrot()

iclblasStatus_t iclblasCrot ( iclblasHandle_t  handle,
int  n,
oclComplex_t x,
int  incx,
oclComplex_t y,
int  incy,
const float *  c,
const oclComplex_t s 
)

Applies Givens rotation matrix.

Parameters
[in]handlehandle to the library context
[in]nnumber of elements in x and y
[in,out]xcomplex vector of size at least n * incx
[in]incxstride between elements in x; should be at least 1
[in,out]ycomplex vector of size at least n * incy
[in]incystride between elements in y; should be at least 1
[in]ccosine of the rotation matrix
[in]ssine of the rotation matrix

◆ iclblasCrotg()

iclblasStatus_t iclblasCrotg ( iclblasHandle_t  handle,
oclComplex_t a,
oclComplex_t b,
float *  c,
oclComplex_t s 
)

Creates the Givens rotation matrix.

Parameters
[in]handlehandle to the library context
[in,out]acomplex scalar, later overwritten with r
[in,out]bcomplex scalar, later overwritten with z
[out]cContains the parameter c associated with the Givens rotation.
[out]scomplex Contains the parameter s associated with the Givens rotation.

◆ iclblasCscal()

iclblasStatus_t iclblasCscal ( iclblasHandle_t  handle,
int  n,
const oclComplex_t alpha,
oclComplex_t x,
int  incx 
)

Multiply the complex vector by the scalar.

x = alpha * x

Where x is complex n element vector

Parameters
[in]handlehandle to the library context
[in]nnumber of elements in x
[in]alphacomplex scalar used in multiplication
[in,out]xcomplex vector of size at least n * incx
[in]incxstride between elements in x; should be at least 1

◆ iclblasCsrot()

iclblasStatus_t iclblasCsrot ( iclblasHandle_t  handle,
int  n,
oclComplex_t x,
int  incx,
oclComplex_t y,
int  incy,
const float *  c,
const float *  s 
)

Applies Givens rotation matrix.

Parameters
[in]handlehandle to the library context
[in]nnumber of elements in x and y
[in,out]xcomplex vector of size at least n * incx
[in]incxstride between elements in x; should be at least 1
[in,out]ycomplex vector of size at least n * incy
[in]incystride between elements in y; should be at least 1
[in]ccosine of the rotation matrix
[in]ssine of the rotation matrix

◆ iclblasCsscal()

iclblasStatus_t iclblasCsscal ( iclblasHandle_t  handle,
int  n,
const float *  alpha,
oclComplex_t x,
int  incx 
)

Multiply the complex vector by the scalar.

x = alpha * x

Where x is complex n element vector

Parameters
[in]handlehandle to the library context
[in]nnumber of elements in x
[in]alphascalar used in multiplication
[in,out]xcomplex vector of size at least n * incx
[in]incxstride between elements in x; should be at least 1

◆ iclblasCswap()

iclblasStatus_t iclblasCswap ( iclblasHandle_t  handle,
int  n,
oclComplex_t x,
int  incx,
oclComplex_t y,
int  incy 
)

Interchanges two complex vectors x and y.

y = x, x = y

Where x and y are complex n element vectors

Parameters
[in]handlehandle to the library context
[in]nnumber of elements in x and y
[in,out]xcomplex vector of size at least n * incx
[in]incxstride between elements in x; should be at least 1
[in,out]ycomplex vector of size at least n * incy
[in]incystride between elements in y; should be at least 1

◆ iclblasIcamax()

iclblasStatus_t iclblasIcamax ( iclblasHandle_t  handle,
int  n,
oclComplex_t x,
int  incx,
int *  result 
)

Computes the first index of the highest magnitude value in complex vector x.

Where x is complex n element vector

Parameters
[in]handlehandle to the library context
[in]nnumber of elements in x
[in]xcomplex vector of size at least n * incx
[in]incxstride between elements in x; should be at least 1
[out]resultcalculated index

◆ iclblasIcamin()

iclblasStatus_t iclblasIcamin ( iclblasHandle_t  handle,
int  n,
oclComplex_t x,
int  incx,
int *  result 
)

Computes the first index of the lowest magnitude value in complex vector x.

Where x is complex n element vector

Parameters
[in]handlehandle to the library context
[in]nnumber of elements in x
[in]xcomplex vector of size at least n * incx
[in]incxstride between elements in x; should be at least 1
[in,out]resultcalculated index

◆ iclblasScasum()

iclblasStatus_t iclblasScasum ( iclblasHandle_t  handle,
int  n,
oclComplex_t x,
int  incx,
float *  result 
)

Computes the sum of the absolute values from vector x.

Where x is n elements vector

Parameters
[in]handlehandle to the library context
[in]nnumber of elements in x
[in]xvector of size at least n * incx
[in]incxstride between elements in x; should be at least 1
[out]resultresult of the calculation

◆ iclblasScnrm2()

iclblasStatus_t iclblasScnrm2 ( iclblasHandle_t  handle,
int  n,
oclComplex_t x,
int  incx,
float *  result 
)

Computes the Euclidean norm of the complex vector x.

Where x is n element vector

Parameters
[in]handlehandle to the library context
[in]nnumber of computed elements
[in]xvector of size at least n * incx
[in]incxstride between elements in x; should be at least 1
[out]resultComputed Euclidean norm