| 
    BLAS++ 2024.05.31
    
   BLAS C++ API 
   | 
 
\(x = \alpha x\) More...
Functions | |
| template<typename T > | |
| void | blas::scal (int64_t n, T alpha, T *x, int64_t incx) | 
| Scale vector by constant, \(x = \alpha x\).   | |
| void | blas::scal (int64_t n, float alpha, float *x, int64_t incx, blas::Queue &queue) | 
| GPU device, float version.  | |
| void | blas::scal (int64_t n, double alpha, double *x, int64_t incx, blas::Queue &queue) | 
| GPU device, double version.  | |
| void | blas::scal (int64_t n, std::complex< float > alpha, std::complex< float > *x, int64_t incx, blas::Queue &queue) | 
| GPU device, complex<float> version.  | |
| void | blas::scal (int64_t n, std::complex< double > alpha, std::complex< double > *x, int64_t incx, blas::Queue &queue) | 
| GPU device, complex<double> version.  | |
| void | blas::scal (int64_t n, float alpha, float *x, int64_t incx) | 
| CPU, float version.  | |
| void | blas::scal (int64_t n, double alpha, double *x, int64_t incx) | 
| CPU, double version.  | |
| void | blas::scal (int64_t n, std::complex< float > alpha, std::complex< float > *x, int64_t incx) | 
| CPU, complex<float> version.  | |
| void | blas::scal (int64_t n, std::complex< double > alpha, std::complex< double > *x, int64_t incx) | 
| CPU, complex<double> version.  | |
\(x = \alpha x\)
| void blas::scal | ( | int64_t | n, | 
| T | alpha, | ||
| T * | x, | ||
| int64_t | incx | ||
| ) | 
Scale vector by constant, \(x = \alpha x\).
Generic implementation for arbitrary data types.
| [in] | n | Number of elements in x. n >= 0. | 
| [in] | alpha | Scalar alpha. | 
| [in] | x | The n-element vector x, in an array of length (n-1)*incx + 1. | 
| [in] | incx | Stride between elements of x. incx > 0. |