Intel® oneAPI Math Kernel Library Developer Reference - C
Swaps a vector with another vector.
void cblas_sswap (const MKL_INT n, float *x, const MKL_INT incx, float *y, const MKL_INT incy);
void cblas_dswap (const MKL_INT n, double *x, const MKL_INT incx, double *y, const MKL_INT incy);
void cblas_cswap (const MKL_INT n, void *x, const MKL_INT incx, void *y, const MKL_INT incy);
void cblas_zswap (const MKL_INT n, void *x, const MKL_INT incx, void *y, const MKL_INT incy);
Given two vectors x and y, the ?swap routines return vectors y and x swapped, each replacing the other.
Specifies the number of elements in vectors x and y.
Array, size at least (1 + (n-1)*abs(incx)).
Specifies the increment for the elements of x.
Array, size at least (1 + (n-1)*abs(incy)).
Specifies the increment for the elements of y.
Contains the resultant vector x, that is, the input vector y.
Contains the resultant vector y, that is, the input vector x.