Modify complex CBLAS functions to take void pointers
Modify complex CBLAS functions to take void pointers instead of float or double arguments (to bring the prototypes in line with netlib and other implementations' cblas.h)
This commit is contained in:
+11
-5
@@ -125,11 +125,17 @@ void NAME(char *UPLO, blasint *N, blasint *K, FLOAT *ALPHA, FLOAT *a, blasint *
|
||||
void CNAME(enum CBLAS_ORDER order,
|
||||
enum CBLAS_UPLO Uplo,
|
||||
blasint n, blasint k,
|
||||
FLOAT *ALPHA,
|
||||
FLOAT *a, blasint lda,
|
||||
FLOAT *x, blasint incx,
|
||||
FLOAT *BETA,
|
||||
FLOAT *y, blasint incy){
|
||||
void *VALPHA,
|
||||
void *va, blasint lda,
|
||||
void *vx, blasint incx,
|
||||
void *VBETA,
|
||||
void *vy, blasint incy){
|
||||
|
||||
FLOAT* ALPHA = (FLOAT*) VALPHA;
|
||||
FLOAT* BETA = (FLOAT*) VBETA;
|
||||
FLOAT* a = (FLOAT*) va;
|
||||
FLOAT* x = (FLOAT*) vx;
|
||||
FLOAT* y = (FLOAT*) vy;
|
||||
|
||||
FLOAT alpha_r = ALPHA[0];
|
||||
FLOAT alpha_i = ALPHA[1];
|
||||
|
||||
Reference in New Issue
Block a user