| 2428 |
jroman |
1 |
|
|
|
2 |
/*
|
| 2580 |
jroman |
3 |
This is used by bin/matlab/classes/SlepcInitialize() to define to Matlab all
|
|
|
4 |
the functions available in the SLEPc shared library. We cannot simply use
|
|
|
5 |
the regular SLEPc include files because they are too complicated for Matlab
|
|
|
6 |
to parse.
|
| 2428 |
jroman |
7 |
|
| 2580 |
jroman |
8 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
|
9 |
SLEPc - Scalable Library for Eigenvalue Problem Computations
|
|
|
10 |
Copyright (c) 2002-2011, Universitat Politecnica de Valencia, Spain
|
|
|
11 |
|
|
|
12 |
This file is part of SLEPc.
|
|
|
13 |
|
|
|
14 |
SLEPc is free software: you can redistribute it and/or modify it under the
|
|
|
15 |
terms of version 3 of the GNU Lesser General Public License as published by
|
|
|
16 |
the Free Software Foundation.
|
|
|
17 |
|
|
|
18 |
SLEPc is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
|
19 |
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
|
20 |
FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
|
|
|
21 |
more details.
|
|
|
22 |
|
|
|
23 |
You should have received a copy of the GNU Lesser General Public License
|
|
|
24 |
along with SLEPc. If not, see <http://www.gnu.org/licenses/>.
|
|
|
25 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
| 2428 |
jroman |
26 |
*/
|
| 2817 |
jroman |
27 |
int SlepcInitializeNoPointers(int,char **,const char*,const char*);
|
|
|
28 |
int SlepcInitialized(int*);
|
| 2428 |
jroman |
29 |
typedef int MPI_Comm;
|
|
|
30 |
int SlepcFinalize(void);
|
|
|
31 |
|
|
|
32 |
typedef int PetscBool;
|
|
|
33 |
typedef long int PetscPointer;
|
|
|
34 |
typedef PetscPointer Vec;
|
|
|
35 |
typedef PetscPointer Mat;
|
| 2429 |
jroman |
36 |
typedef PetscPointer KSP;
|
| 2428 |
jroman |
37 |
typedef PetscPointer PetscViewer;
|
|
|
38 |
|
| 2429 |
jroman |
39 |
typedef PetscPointer ST;
|
|
|
40 |
int STCreate(MPI_Comm,ST *);
|
|
|
41 |
int STSetType(ST,const char*);
|
|
|
42 |
int STSetFromOptions(ST);
|
|
|
43 |
int STSetOperators(ST,Mat,Mat);
|
|
|
44 |
int STSetUp(ST);
|
|
|
45 |
int STView(ST,PetscViewer);
|
|
|
46 |
int STGetKSP(ST,KSP*);
|
|
|
47 |
int STDestroy(ST*);
|
|
|
48 |
|
| 2428 |
jroman |
49 |
typedef PetscPointer EPS;
|
|
|
50 |
typedef int EPSProblemType;
|
| 2429 |
jroman |
51 |
typedef int EPSWhich;
|
|
|
52 |
typedef int EPSExtraction;
|
| 2430 |
jroman |
53 |
int EPSCreate(MPI_Comm,EPS*);
|
| 2428 |
jroman |
54 |
int EPSSetType(EPS,const char*);
|
|
|
55 |
int EPSSetFromOptions(EPS);
|
|
|
56 |
int EPSSetOperators(EPS,Mat,Mat);
|
|
|
57 |
int EPSSetProblemType(EPS,EPSProblemType);
|
| 2429 |
jroman |
58 |
int EPSSetWhichEigenpairs(EPS,EPSWhich);
|
|
|
59 |
int EPSSetTarget(EPS,double);
|
|
|
60 |
int EPSSetExtraction(EPS,EPSExtraction);
|
|
|
61 |
int EPSSetTolerances(EPS,double,int);
|
|
|
62 |
int EPSSetDimensions(EPS,int,int,int);
|
| 2428 |
jroman |
63 |
int EPSSolve(EPS);
|
|
|
64 |
int EPSSetUp(EPS);
|
|
|
65 |
int EPSGetConverged(EPS,int*);
|
| 2431 |
jroman |
66 |
int EPSGetEigenpair(EPS,int,double*,double*,Vec,Vec);
|
| 2428 |
jroman |
67 |
int EPSComputeRelativeError(EPS,int,double*);
|
|
|
68 |
int EPSView(EPS,PetscViewer);
|
| 2429 |
jroman |
69 |
int EPSGetST(EPS,ST*);
|
| 2428 |
jroman |
70 |
int EPSDestroy(EPS*);
|
|
|
71 |
|
| 2430 |
jroman |
72 |
typedef PetscPointer SVD;
|
|
|
73 |
typedef int SVDWhich;
|
|
|
74 |
int SVDCreate(MPI_Comm,SVD*);
|
|
|
75 |
int SVDSetType(SVD,const char*);
|
|
|
76 |
int SVDSetFromOptions(SVD);
|
|
|
77 |
int SVDSetOperator(SVD,Mat);
|
|
|
78 |
int SVDSetWhichSingularTriplets(SVD,SVDWhich);
|
|
|
79 |
int SVDSetTolerances(SVD,double,int);
|
|
|
80 |
int SVDSetDimensions(SVD,int,int,int);
|
|
|
81 |
int SVDSolve(SVD);
|
|
|
82 |
int SVDSetUp(SVD);
|
|
|
83 |
int SVDGetConverged(SVD,int*);
|
|
|
84 |
int SVDGetSingularTriplet(SVD,int,double*,Vec,Vec);
|
|
|
85 |
int SVDComputeRelativeError(SVD,int,double*);
|
|
|
86 |
int SVDView(SVD,PetscViewer);
|
|
|
87 |
int SVDDestroy(SVD*);
|
|
|
88 |
|
| 2431 |
jroman |
89 |
typedef PetscPointer QEP;
|
|
|
90 |
typedef int QEPProblemType;
|
|
|
91 |
typedef int QEPWhich;
|
|
|
92 |
int QEPCreate(MPI_Comm,QEP*);
|
|
|
93 |
int QEPSetType(QEP,const char*);
|
|
|
94 |
int QEPSetFromOptions(QEP);
|
|
|
95 |
int QEPSetOperators(QEP,Mat,Mat,Mat);
|
|
|
96 |
int QEPSetProblemType(QEP,QEPProblemType);
|
|
|
97 |
int QEPSetWhichEigenpairs(QEP,QEPWhich);
|
|
|
98 |
int QEPSetScaleFactor(QEP,double);
|
|
|
99 |
int QEPSetTolerances(QEP,double,int);
|
|
|
100 |
int QEPSetDimensions(QEP,int,int,int);
|
|
|
101 |
int QEPSolve(QEP);
|
|
|
102 |
int QEPSetUp(QEP);
|
|
|
103 |
int QEPGetConverged(QEP,int*);
|
|
|
104 |
int QEPGetEigenpair(QEP,int,double*,double*,Vec,Vec);
|
|
|
105 |
int QEPComputeRelativeError(QEP,int,double*);
|
|
|
106 |
int QEPView(QEP,PetscViewer);
|
|
|
107 |
int QEPDestroy(QEP*);
|
|
|
108 |
|