I got stuck with calling the MKL Blas function cblas_zgemv
There are two coeffitiens alpha and beta which are complex numbers:
alpha
REAL for sgemv
DOUBLE PRECISION for dgemv
COMPLEX for cgemv, scgemv
DOUBLE COMPLEX for zgemv, dzgemv
. But in the definition of the function:
void cblas_zgemv (const CBLAS_ORDER order, const CBLAS_TRANSPOSE TransA,
const MKL_INT M, const MKL_INT N, const void *alpha, const void *A,
const MKL_INT lda, const void *X, const MKL_INT incX, const void *beta,
void *Y, const MKL_INT incY);
I have tried to set the alpha = complex(1.0,0) but this return me an error:
error: no suitable conversion function from "complex<double>" to "const void *" exists
What can I do? I don't understand what this const void* is...