-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheigen_wrapper.h
47 lines (25 loc) · 1.61 KB
/
eigen_wrapper.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//#include <iostream.h>
#include "goto_tools.h"
#include "containers.h"
#ifndef EIGEN_H
#define EIGEN_H
extern "C" void dsytrd_(char*,int*,double*,int*,double*,double*,double*,double*,int*,int*);
extern "C" void dstebz_(char*,char*,int*,double*,double*,int*,int*,double*,double*,double*,int*,int*,double*,int*,int*,double*,int*,int*);
extern "C" void dstein_(int*,double*,double*,int*,double*,int*,int*,double*,int*,double*,int*,int*,int*);
extern "C" void dormtr_(char*,char*,char*,int*,int*,double*,int*,double*,double*,int*,double*,int*,int*);
extern "C" void dgetrf_(int*,int*,double*,int*,int*,int*);
extern "C" void dgetrs_(char*,int*,int*,double*,int*,int*,double*,int*,int*);
extern "C" void dgetri_(int*,double*,int*,int*,double*,int*,int*);
extern "C" void dsaupd_(int*,char*,int*,char*,int*,double*,double*,int*,double*,int*,int*,int*,double*,double*,int*,int*);
extern "C" void dseupd_(int*,char*,int*,double*,double*,int*,double*,char*,int*,char*,int*,double*,double*,int*,double*,int*,int*,int*,double*,double*,int*,int*);
void matrix_multiply(double**, int, int, double**, int, int, double**);
double check_inversion(array_2d<double>&,array_2d<double>&);
double determinant(double*,int);
double trace(double*,int);
void invert_lapack(array_2d<double>&,array_2d<double>&,int);
void solve_lapack_nbyn(array_2d<double>&,array_1d<double>&,array_1d<double>&);
void eval_symm(array_2d<double>&,array_2d<double>&,array_1d<double>&,int,int,int);
double eigen_check(array_2d<double>&,array_1d<double>&,double,int);
double eigen_check_open(double**,double*,int);
void eigen_solve(double**,int,int,double*, double**);
#endif