QUDA  0.9.0
blas_reference.h
Go to the documentation of this file.
1 #ifndef _BLAS_REFERENCE_H
2 #define _BLAS_REFERENCE_H
3 
4 #include <enum_quda.h>
5 
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9 
10  // ---------- blas_reference.cpp ----------
11  double norm_2(void *vector, int len, QudaPrecision precision);
12  void mxpy(void *x, void *y, int len, QudaPrecision precision);
13  void ax(double a, void *x, int len, QudaPrecision precision);
14  void axpy(double a, void *x, void *y, int len, QudaPrecision precision);
15  void xpay(void *x, double a, void *y, int len, QudaPrecision precision);
16 
17  /* void zero(float* a, int cnt);
18  void copy(float* a, float *b, int len);*/
19 
20  /*void axpbyCuda(float a, float *x, float b, float *y, int len);
21  void axpy(float a, float *x, float *y, int len);*/
22  //void xpay(float *x, float a, float *y, int len);
23 
24  /*float reDotProduct(float *v1, float *v2, int len);
25  float imDotProduct(float *v1, float *v2, int len);
26  double normD(float *vector, int len);
27  double reDotProductD(float *v1, float *v2, int len);
28  double imDotProductD(float *v1, float *v2, int len);*/
29 
30 #ifdef __cplusplus
31 }
32 #endif
33 
34 #endif // _BLAS_REFERENCE_H
enum QudaPrecision_s QudaPrecision
void axpy(double a, void *x, void *y, int len, QudaPrecision precision)
void ax(double a, void *x, int len, QudaPrecision precision)
void mxpy(void *x, void *y, int len, QudaPrecision precision)
double norm_2(void *vector, int len, QudaPrecision precision)
void xpay(void *x, double a, void *y, int len, QudaPrecision precision)
#define a