1
#ifndef _psi_src_bin_psimrcc_algebra_interface_h_
2
#define _psi_src_bin_psimrcc_algebra_interface_h_
10
#define F_DCOPY dcopy_
11
#define F_DGEMM dgemm_
13
#define F_DSCAL dscal_
14
#define F_DGEMV dgemv_
15
#define F_DSPMV dspmv_
36
#define F_DAXPY DAXPY_
37
#define F_DCOPY DCOPY_
38
#define F_DGEMM DGEMM_
40
#define F_DSCAL DSCAL_
41
#define F_DGEMV DGEMV_
42
#define F_DSPMV DSPMV_
46
namespace psi{ namespace psimrcc{
48
extern "C" void F_DAXPY(int *length, double *a, double *x, int *inc_x,
49
double *y, int *inc_y);
50
extern "C" void F_DCOPY(int *length, double *x, int *inc_x,
51
double *y, int *inc_y);
52
extern "C" void F_DGEMM(const char *transa, const char *transb, int *m, int *n, int *k,
53
double *alpha, double *A, int *lda, double *B, int *ldb,
54
double *beta, double *C, int *ldc);
55
extern "C" void F_DROT(int *ntot,double *x, int *incx,double *y, int *incy,
56
double *cotheta,double *sintheta);
57
extern "C" void F_DSCAL(int *n, double *alpha, double *vec, int *inc);
58
extern "C" void F_DGEMV(char *transa, int *m, int *n, double *alpha, double *A,
59
int *lda, double *X, int *inc_x, double *beta,
60
double *Y, int *inc_y);
61
extern "C" double F_DDOT(int *n, double *x, int *incx, double *y, int *incy);
63
void C_DGEMM_12(int m, int n, int k, double alpha,double *A, int nra,
64
double *B, int ncb, double beta, double *C, int ncc);
65
void C_DGEMM_22(int m, int n, int k, double alpha,double *A, int nca,
66
double *B, int ncb, double beta, double *C, int ncc);
68
// void C_DGEMM_11(int m, int n, int k, double alpha,double *A, int nca,
69
// double *B, int ncb, double beta, double *C, int ncc);
70
// void C_DGEMM_21(int m, int n, int k, double alpha,double *A, int nca,
71
// double *B, int ncb, double beta, double *C, int ncc);
75
#define F_DGEEV dgeev_
76
#define F_DGESV dgesv_
77
#define F_DGETRF dgetrf_
78
#define F_DGETRI dgetri_
79
#define F_DGESVD dgesvd_
80
#define F_DSYEV dsyev_
84
#define F_DGETRF dgetrf
85
#define F_DGETRI dgetri
86
#define F_DGESVD dgesvd
91
#define F_DGETRF DGETRF
92
#define F_DGETRI DGETRI
93
#define F_DGESVD DGESVD
96
#define F_DGEEV DGEEV_
97
#define F_DGESV DGESV_
98
#define F_DGETRF DGETRF_
99
#define F_DGETRI DGETRI_
100
#define F_DGESVD DGESVD_
101
#define F_DSYEV DSYEV_
104
extern "C" void F_DGEEV(const char *jobvl, const char *jobvr, int *n, double *a, int *lda,
105
double *wr, double *wi, double *vl, int *ldvl, double *vr,
106
int *ldvr, double *work, int *lwork, int *info);
107
extern "C" void F_DGESV(int *n, int *nrhs, double *A, int *lda, int *ipiv,
108
double *B, int *ldb, int *info);
110
extern "C" void F_DSYEV(char *JOBZ, char *UPLO, int *N, double *A, int *LDA, double *W, double *WORK, int *LWORK, int *INFO );
114
#endif // _psi_src_bin_psimrcc_algebra_interface_h_