ScaMaC  0.8.2
A Scalable Matrix Collection
scamac_clapack.h
Go to the documentation of this file.
1 
8 #ifndef SCAMAC_CLAPACK_H
9 #define SCAMAC_CLAPACK_H
10 
11 #include <complex.h>
12 
13 /* basic wrapper for the few BLAS routines needed here */
14 
15 /* COPYRIGHT: CBLAS .... */
16 
17 extern void dsteqr_(char *compz, int *n, double *d, double *e, double *z, int *ldz, double *work, int *info);
18 extern void dlarnv_(int *idist, int *iseed, int *n, double *x);
19 extern void dsyev_(char *jobz, char *uplo, int *n, double *a, int *lda, double *w, double *work, int *lwork, int *info);
20 
21 typedef struct {
22  double re, im;
23 } LAPACK_COMPLEX;
24 extern void zheev_(char *jobz, char *uplo, int *n, LAPACK_COMPLEX *a, int *lda, double *w, LAPACK_COMPLEX *work, int *lwork, double *rwork, int *info);
25 
26 void dgees_(char *jobvs, char *sort, void *select(), int *n, double *a, int *lda, int *sdim, double *wr,
27  double *wi, double *vs, int *ldvs, double *work, int *lwork, int *bwork, int *info);
28 
29 void zgees_(char *jobvs, char *sort, void *select(), int *n, LAPACK_COMPLEX *a, int *lda, int *sdim,
30  LAPACK_COMPLEX *w, LAPACK_COMPLEX *vs, int *ldvs, LAPACK_COMPLEX *work, int *lwork,
31  double *rwork, int *bwork, int *info);
32 
33 #endif /* SCAMAC_CLAPACK_H */