v2DM-DOCI  1.0
lapack.h
Go to the documentation of this file.
1 /*
2  * @BEGIN LICENSE
3  *
4  * Copyright (C) 2014-2015 Ward Poelmans
5  *
6  * This file is part of v2DM-DOCI.
7  *
8  * v2DM-DOCI is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * Foobar is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with Foobar. If not, see <http://www.gnu.org/licenses/>.
20  *
21  * @END LICENSE
22  */
23 
24 #ifndef LAPACK_H
25 #define LAPACK_H
26 
27 //lapack definities
28 extern "C" {
29 
30  void dgeqrf_(int *m,int *n,double *A,int *LDA,double *tau,double *WORK,int *LWORK,int *INFO);
31  void dorgqr_(int *m,int *n, int *k,double *A,int *LDA,double *tau,double *WORK,int *LWORK,int *INFO);
32  void dgelqf_(int *m,int *n,double *A,int *LDA,double *tau,double *WORK,int *LWORK,int *INFO);
33  void dorglq_(int *m,int *n, int *k,double *A,int *LDA,double *tau,double *WORK,int *LWORK,int *INFO);
34  void dcopy_(int *n,const double *x,int *incx,double *y,int *incy);
35  void daxpy_(int *n,double *alpha,double *x,int *incx,double *y,int *incy);
36  void dscal_(int *n,const double *alpha,double *x,int *incx);
37  void dgemm_(char *transA,char *transB,const int *m,const int *n,const int *k,double *alpha,double *A,const int *lda,double *B,const int *ldb,double *beta,double *C,const int *ldc);
38  void dsymm_(char *side,char *uplo,int *m,int *n,double *alpha,double *A,int *lda,double *B,int *ldb,double *beta,double *C,int *ldc);
39  void dgemv_(char *trans,int *m,int *n,double *alpha,double *A,int *lda,double *x,int *incx,double *beta,double *y,int *incy);
40  double ddot_(const int *n,double *x,int *incx,double *y,int *incy);
41  void dsyev_(char *jobz,char *uplo,int *n,double *A,int *lda,double *W,double *work,int *lwork,int *info);
42  void dpotrf_(char *uplo,int *n,double *A,int *lda,int *INFO);
43  void dpotri_(char *uplo,int *n,double *A,int *lda,int *INFO);
44  void dsyevr_( char* jobz, char* range, char* uplo, int* n, double* a, int* lda, double* vl, double* vu, int* il, int* iu, double* abstol, int* m, double* w, double* z, int* ldz, int* isuppz, double* work, int* lwork, int* iwork, int* liwork, int* info );
45  void dsyevd_( char* jobz, char* uplo, int* n, double* a, int* lda, double* w, double* work, int* lwork, int* iwork, int* liwork, int* info );
46 
47  void dgesvd_( char* jobu, char* jobvt, int* m, int* n, double* a, int* lda, double* s, double* u, int* ldu, double* vt, int* ldvt, double* work, int* lwork, int* info );
48  void dgetri_(int *n,double *A,int *lda,int *ipiv,double *work,int *lwork,int *info);
49  void dgetrf_(int *m,int *n,double *A,int *lda,int *ipiv,int *info);
50 
51 }
52 
53 #endif
54 
55 /* vim: set ts=3 sw=3 expandtab :*/
void dgemm_(char *transA, char *transB, const int *m, const int *n, const int *k, double *alpha, double *A, const int *lda, double *B, const int *ldb, double *beta, double *C, const int *ldc)
void dgeqrf_(int *m, int *n, double *A, int *LDA, double *tau, double *WORK, int *LWORK, int *INFO)
void dsyevr_(char *jobz, char *range, char *uplo, int *n, double *a, int *lda, double *vl, double *vu, int *il, int *iu, double *abstol, int *m, double *w, double *z, int *ldz, int *isuppz, double *work, int *lwork, int *iwork, int *liwork, int *info)
void dgetri_(int *n, double *A, int *lda, int *ipiv, double *work, int *lwork, int *info)
void dorgqr_(int *m, int *n, int *k, double *A, int *LDA, double *tau, double *WORK, int *LWORK, int *INFO)
void dsymm_(char *side, char *uplo, int *m, int *n, double *alpha, double *A, int *lda, double *B, int *ldb, double *beta, double *C, int *ldc)
double ddot_(const int *n, double *x, int *incx, double *y, int *incy)
void dsyevd_(char *jobz, char *uplo, int *n, double *a, int *lda, double *w, double *work, int *lwork, int *iwork, int *liwork, int *info)
void dpotrf_(char *uplo, int *n, double *A, int *lda, int *INFO)
void daxpy_(int *n, double *alpha, double *x, int *incx, double *y, int *incy)
void dsyev_(char *jobz, char *uplo, int *n, double *A, int *lda, double *W, double *work, int *lwork, int *info)
void dorglq_(int *m, int *n, int *k, double *A, int *LDA, double *tau, double *WORK, int *LWORK, int *INFO)
void dgesvd_(char *jobu, char *jobvt, int *m, int *n, double *a, int *lda, double *s, double *u, int *ldu, double *vt, int *ldvt, double *work, int *lwork, int *info)
void dgelqf_(int *m, int *n, double *A, int *LDA, double *tau, double *WORK, int *LWORK, int *INFO)
void dcopy_(int *n, const double *x, int *incx, double *y, int *incy)
void dscal_(int *n, const double *alpha, double *x, int *incx)
void dgetrf_(int *m, int *n, double *A, int *lda, int *ipiv, int *info)
void dpotri_(char *uplo, int *n, double *A, int *lda, int *INFO)
void dgemv_(char *trans, int *m, int *n, double *alpha, double *A, int *lda, double *x, int *incx, double *beta, double *y, int *incy)