Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.

type of alpha in the scal function

sycl-developer
New Contributor I
582 Views

After reading the cublas level-1 scal functions, I wonder if the oneMKL blas level-1 function "scal" expects a scalar  "alpha" (i.e. float or double).  Thanks for clarification. 

 

cublasStatus_t cublasSscal(cublasHandle_t handle, int n, const float *alpha, float *x, int incx)

cublasStatus_t cublasDscal(cublasHandle_t handle, int n, const double *alpha, double *x, int incx)

cublasStatus_t cublasCscal(cublasHandle_t handle, int n, const cuComplex *alpha, cuComplex *x, int incx)

cublasStatus_t cublasCsscal(cublasHandle_t handle, int n, const float *alpha, cuComplex *x, int incx)

 

cublasStatus_t cublasZscal(cublasHandle_t handle, int n, const cuDoubleComplex *alpha, cuDoubleComplex *x, int incx)

cublasStatus_t cublasZdscal(cublasHandle_t handle, int n, const double *alpha, cuDoubleComplex *x, int incx) 

0 Kudos
1 Solution
2 Replies
sycl-developer
New Contributor I
551 Views
0 Kudos
Gennady_F_Intel
Moderator
540 Views
0 Kudos
Reply