scnrm2 in noncblas.cc

This commit is contained in:
Jiri Pittner 2023-04-28 16:47:12 +02:00
parent 696fb5ff1d
commit e1757c6d30

View File

@ -231,14 +231,14 @@ double cblas_dznrm2(const int N, const void *X, const int incX){
#endif #endif
} }
extern "C" float FORNAME(sznrm2) (const FINT *n, const void *x, const FINT *incx); extern "C" float FORNAME(scnrm2) (const FINT *n, const void *x, const FINT *incx);
float cblas_sznrm2(const int N, const void *X, const int incX){ float cblas_scnrm2(const int N, const void *X, const int incX){
#ifdef FORINT #ifdef FORINT
const FINT ntmp=N; const FINT ntmp=N;
const FINT incxtmp=incX; const FINT incxtmp=incX;
return FORNAME(sznrm2) (&ntmp,X,&incxtmp); return FORNAME(scnrm2) (&ntmp,X,&incxtmp);
#else #else
return FORNAME(sznrm2) (&N,X,&incX); return FORNAME(scnrm2) (&N,X,&incX);
#endif #endif
} }