Date: 2021-02-01T14:42:23+00:00

Actual source code: slepceps.h
slepc-3.14.2 2021-02-01
Report Typos and Errors

      1: /*
      2:    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      3:    SLEPc - Scalable Library for Eigenvalue Problem Computations
      4:    Copyright (c) 2002-2020, Universitat Politecnica de Valencia, Spain

      6:    This file is part of SLEPc.
      7:    SLEPc is distributed under a 2-clause BSD license (see LICENSE).
      8:    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      9: */
     10: /*
     11:    User interface for the SLEPc linear eigenvalue solvers
     12: */

     14: #if !defined(SLEPCEPS_H)
     15: #define SLEPCEPS_H
     16: #include <slepcst.h>
     17: #include <slepcbv.h>
     18: #include <slepcds.h>
     19: #include <slepcrg.h>
     20: #include <slepclme.h>
     21: #include <petscsnes.h>

     23: SLEPC_EXTERN PetscErrorCode EPSInitializePackage(void);

     25: /*S
     26:     EPS - Abstract SLEPc object that manages all the eigenvalue
     27:     problem solvers.

     29:     Level: beginner

     31: .seealso:  EPSCreate(), ST
     32: S*/
     33: typedef struct _p_EPS* EPS;

     35: /*J
     36:     EPSType - String with the name of a SLEPc eigensolver

     38:     Level: beginner

     40: .seealso: EPSSetType(), EPS
     41: J*/
     42: typedef const char* EPSType;
     43: #define EPSPOWER       "power"
     44: #define EPSSUBSPACE    "subspace"
     45: #define EPSARNOLDI     "arnoldi"
     46: #define EPSLANCZOS     "lanczos"
     47: #define EPSKRYLOVSCHUR "krylovschur"
     48: #define EPSGD          "gd"
     49: #define EPSJD          "jd"
     50: #define EPSRQCG        "rqcg"
     51: #define EPSLOBPCG      "lobpcg"
     52: #define EPSCISS        "ciss"
     53: #define EPSLYAPII      "lyapii"
     54: #define EPSLAPACK      "lapack"
     55: #define EPSARPACK      "arpack"
     56: #define EPSBLZPACK     "blzpack"
     57: #define EPSTRLAN       "trlan"
     58: #define EPSBLOPEX      "blopex"
     59: #define EPSPRIMME      "primme"
     60: #define EPSFEAST       "feast"
     61: #define EPSSCALAPACK   "scalapack"
     62: #define EPSELPA        "elpa"
     63: #define EPSELEMENTAL   "elemental"

     65: /* Logging support */
     66: SLEPC_EXTERN PetscClassId EPS_CLASSID;

     68: /*E
     69:     EPSProblemType - Determines the type of eigenvalue problem

     71:     Level: beginner

     73: .seealso: EPSSetProblemType(), EPSGetProblemType()
     74: E*/
     75: typedef enum { EPS_HEP=1,
     76:                EPS_GHEP,
     77:                EPS_NHEP,
     78:                EPS_GNHEP,
     79:                EPS_PGNHEP,
     80:                EPS_GHIEP } EPSProblemType;

     82: /*E
     83:     EPSExtraction - Determines the type of extraction technique employed
     84:     by the eigensolver

     86:     Level: advanced

     88: .seealso: EPSSetExtraction(), EPSGetExtraction()
     89: E*/
     90: typedef enum { EPS_RITZ,
     91:                EPS_HARMONIC,
     92:                EPS_HARMONIC_RELATIVE,
     93:                EPS_HARMONIC_RIGHT,
     94:                EPS_HARMONIC_LARGEST,
     95:                EPS_REFINED,
     96:                EPS_REFINED_HARMONIC } EPSExtraction;

     98: /*E
     99:     EPSWhich - Determines which part of the spectrum is requested

    101:     Level: intermediate

    103: .seealso: EPSSetWhichEigenpairs(), EPSGetWhichEigenpairs()
    104: E*/
    105: typedef enum { EPS_LARGEST_MAGNITUDE=1,
    106:                EPS_SMALLEST_MAGNITUDE,
    107:                EPS_LARGEST_REAL,
    108:                EPS_SMALLEST_REAL,
    109:                EPS_LARGEST_IMAGINARY,
    110:                EPS_SMALLEST_IMAGINARY,
    111:                EPS_TARGET_MAGNITUDE,
    112:                EPS_TARGET_REAL,
    113:                EPS_TARGET_IMAGINARY,
    114:                EPS_ALL,
    115:                EPS_WHICH_USER } EPSWhich;

    117: /*E
    118:     EPSBalance - The type of balancing used for non-Hermitian problems

    120:     Level: intermediate

    122: .seealso: EPSSetBalance()
    123: E*/
    124: typedef enum { EPS_BALANCE_NONE,
    125:                EPS_BALANCE_ONESIDE,
    126:                EPS_BALANCE_TWOSIDE,
    127:                EPS_BALANCE_USER } EPSBalance;
    128: SLEPC_EXTERN const char *EPSBalanceTypes[];

    130: /*E
    131:     EPSErrorType - The error type used to assess accuracy of computed solutions

    133:     Level: intermediate

    135: .seealso: EPSComputeError()
    136: E*/
    137: typedef enum { EPS_ERROR_ABSOLUTE,
    138:                EPS_ERROR_RELATIVE,
    139:                EPS_ERROR_BACKWARD } EPSErrorType;
    140: SLEPC_EXTERN const char *EPSErrorTypes[];

    142: /*E
    143:     EPSConv - Determines the convergence test

    145:     Level: intermediate

    147: .seealso: EPSSetConvergenceTest(), EPSSetConvergenceTestFunction()
    148: E*/
    149: typedef enum { EPS_CONV_ABS,
    150:                EPS_CONV_REL,
    151:                EPS_CONV_NORM,
    152:                EPS_CONV_USER } EPSConv;

    154: /*E
    155:     EPSStop - Determines the stopping test

    157:     Level: advanced

    159: .seealso: EPSSetStoppingTest(), EPSSetStoppingTestFunction()
    160: E*/
    161: typedef enum { EPS_STOP_BASIC,
    162:                EPS_STOP_USER } EPSStop;

    164: /*E
    165:     EPSConvergedReason - Reason an eigensolver was said to
    166:          have converged or diverged

    168:     Level: intermediate

    170: .seealso: EPSSolve(), EPSGetConvergedReason(), EPSSetTolerances()
    171: E*/
    172: typedef enum {/* converged */
    173:               EPS_CONVERGED_TOL                =  1,
    174:               EPS_CONVERGED_USER               =  2,
    175:               /* diverged */
    176:               EPS_DIVERGED_ITS                 = -1,
    177:               EPS_DIVERGED_BREAKDOWN           = -2,
    178:               EPS_DIVERGED_SYMMETRY_LOST       = -3,
    179:               EPS_CONVERGED_ITERATING          =  0} EPSConvergedReason;
    180: SLEPC_EXTERN const char *const*EPSConvergedReasons;

    182: SLEPC_EXTERN PetscErrorCode EPSCreate(MPI_Comm,EPS*);
    183: SLEPC_EXTERN PetscErrorCode EPSDestroy(EPS*);
    184: SLEPC_EXTERN PetscErrorCode EPSReset(EPS);
    185: SLEPC_EXTERN PetscErrorCode EPSSetType(EPS,EPSType);
    186: SLEPC_EXTERN PetscErrorCode EPSGetType(EPS,EPSType*);
    187: SLEPC_EXTERN PetscErrorCode EPSSetProblemType(EPS,EPSProblemType);
    188: SLEPC_EXTERN PetscErrorCode EPSGetProblemType(EPS,EPSProblemType*);
    189: SLEPC_EXTERN PetscErrorCode EPSSetExtraction(EPS,EPSExtraction);
    190: SLEPC_EXTERN PetscErrorCode EPSGetExtraction(EPS,EPSExtraction*);
    191: SLEPC_EXTERN PetscErrorCode EPSSetBalance(EPS,EPSBalance,PetscInt,PetscReal);
    192: SLEPC_EXTERN PetscErrorCode EPSGetBalance(EPS,EPSBalance*,PetscInt*,PetscReal*);
    193: SLEPC_EXTERN PetscErrorCode EPSSetOperators(EPS,Mat,Mat);
    194: SLEPC_EXTERN PetscErrorCode EPSGetOperators(EPS,Mat*,Mat*);
    195: SLEPC_EXTERN PetscErrorCode EPSSetFromOptions(EPS);
    196: SLEPC_EXTERN PetscErrorCode EPSSetUp(EPS);
    197: SLEPC_EXTERN PetscErrorCode EPSSolve(EPS);
    198: SLEPC_EXTERN PetscErrorCode EPSView(EPS,PetscViewer);
    199: SLEPC_EXTERN PetscErrorCode EPSViewFromOptions(EPS,PetscObject,const char[]);
    200: SLEPC_EXTERN PetscErrorCode EPSErrorView(EPS,EPSErrorType,PetscViewer);
    201: PETSC_DEPRECATED_FUNCTION("Use EPSErrorView()") PETSC_STATIC_INLINE PetscErrorCode EPSPrintSolution(EPS eps,PetscViewer v) {return EPSErrorView(eps,EPS_ERROR_RELATIVE,v);}
    202: SLEPC_EXTERN PetscErrorCode EPSErrorViewFromOptions(EPS);
    203: SLEPC_EXTERN PetscErrorCode EPSConvergedReasonView(EPS,PetscViewer);
    204: SLEPC_EXTERN PetscErrorCode EPSConvergedReasonViewFromOptions(EPS);
    205: PETSC_DEPRECATED_FUNCTION("Use EPSConvergedReasonView() (since version 3.14)") PETSC_STATIC_INLINE PetscErrorCode EPSReasonView(EPS eps,PetscViewer v) {return EPSConvergedReasonView(eps,v);}
    206: PETSC_DEPRECATED_FUNCTION("Use EPSConvergedReasonViewFromOptions() (since version 3.14)") PETSC_STATIC_INLINE PetscErrorCode EPSReasonViewFromOptions(EPS eps) {return EPSConvergedReasonViewFromOptions(eps);}
    207: SLEPC_EXTERN PetscErrorCode EPSValuesView(EPS,PetscViewer);
    208: SLEPC_EXTERN PetscErrorCode EPSValuesViewFromOptions(EPS);
    209: SLEPC_EXTERN PetscErrorCode EPSVectorsView(EPS,PetscViewer);
    210: SLEPC_EXTERN PetscErrorCode EPSVectorsViewFromOptions(EPS);

    212: SLEPC_EXTERN PetscErrorCode EPSSetTarget(EPS,PetscScalar);
    213: SLEPC_EXTERN PetscErrorCode EPSGetTarget(EPS,PetscScalar*);
    214: SLEPC_EXTERN PetscErrorCode EPSSetInterval(EPS,PetscReal,PetscReal);
    215: SLEPC_EXTERN PetscErrorCode EPSGetInterval(EPS,PetscReal*,PetscReal*);
    216: SLEPC_EXTERN PetscErrorCode EPSSetST(EPS,ST);
    217: SLEPC_EXTERN PetscErrorCode EPSGetST(EPS,ST*);
    218: SLEPC_EXTERN PetscErrorCode EPSSetBV(EPS,BV);
    219: SLEPC_EXTERN PetscErrorCode EPSGetBV(EPS,BV*);
    220: SLEPC_EXTERN PetscErrorCode EPSSetRG(EPS,RG);
    221: SLEPC_EXTERN PetscErrorCode EPSGetRG(EPS,RG*);
    222: SLEPC_EXTERN PetscErrorCode EPSSetDS(EPS,DS);
    223: SLEPC_EXTERN PetscErrorCode EPSGetDS(EPS,DS*);
    224: SLEPC_EXTERN PetscErrorCode EPSSetTolerances(EPS,PetscReal,PetscInt);
    225: SLEPC_EXTERN PetscErrorCode EPSGetTolerances(EPS,PetscReal*,PetscInt*);
    226: SLEPC_EXTERN PetscErrorCode EPSSetConvergenceTestFunction(EPS,PetscErrorCode (*)(EPS,PetscScalar,PetscScalar,PetscReal,PetscReal*,void*),void*,PetscErrorCode (*)(void*));
    227: SLEPC_EXTERN PetscErrorCode EPSSetConvergenceTest(EPS,EPSConv);
    228: SLEPC_EXTERN PetscErrorCode EPSGetConvergenceTest(EPS,EPSConv*);
    229: SLEPC_EXTERN PetscErrorCode EPSConvergedAbsolute(EPS,PetscScalar,PetscScalar,PetscReal,PetscReal*,void*);
    230: SLEPC_EXTERN PetscErrorCode EPSConvergedRelative(EPS,PetscScalar,PetscScalar,PetscReal,PetscReal*,void*);
    231: SLEPC_EXTERN PetscErrorCode EPSConvergedNorm(EPS,PetscScalar,PetscScalar,PetscReal,PetscReal*,void*);
    232: SLEPC_EXTERN PetscErrorCode EPSSetStoppingTestFunction(EPS,PetscErrorCode (*)(EPS,PetscInt,PetscInt,PetscInt,PetscInt,EPSConvergedReason*,void*),void*,PetscErrorCode (*)(void*));
    233: SLEPC_EXTERN PetscErrorCode EPSSetStoppingTest(EPS,EPSStop);
    234: SLEPC_EXTERN PetscErrorCode EPSGetStoppingTest(EPS,EPSStop*);
    235: SLEPC_EXTERN PetscErrorCode EPSStoppingBasic(EPS,PetscInt,PetscInt,PetscInt,PetscInt,EPSConvergedReason*,void*);
    236: SLEPC_EXTERN PetscErrorCode EPSGetConvergedReason(EPS,EPSConvergedReason*);

    238: SLEPC_EXTERN PetscErrorCode EPSSetDimensions(EPS,PetscInt,PetscInt,PetscInt);
    239: SLEPC_EXTERN PetscErrorCode EPSGetDimensions(EPS,PetscInt*,PetscInt*,PetscInt*);

    241: SLEPC_EXTERN PetscErrorCode EPSGetConverged(EPS,PetscInt*);
    242: SLEPC_EXTERN PetscErrorCode EPSGetEigenpair(EPS,PetscInt,PetscScalar*,PetscScalar*,Vec,Vec);
    243: SLEPC_EXTERN PetscErrorCode EPSGetEigenvalue(EPS,PetscInt,PetscScalar*,PetscScalar*);
    244: SLEPC_EXTERN PetscErrorCode EPSGetEigenvector(EPS,PetscInt,Vec,Vec);
    245: SLEPC_EXTERN PetscErrorCode EPSGetLeftEigenvector(EPS,PetscInt,Vec,Vec);

    247: SLEPC_EXTERN PetscErrorCode EPSComputeError(EPS,PetscInt,EPSErrorType,PetscReal*);
    248: PETSC_DEPRECATED_FUNCTION("Use EPSComputeError()") PETSC_STATIC_INLINE PetscErrorCode EPSComputeRelativeError(EPS eps,PetscInt i,PetscReal *r) {return EPSComputeError(eps,i,EPS_ERROR_RELATIVE,r);}
    249: PETSC_DEPRECATED_FUNCTION("Use EPSComputeError() with EPS_ERROR_ABSOLUTE") PETSC_STATIC_INLINE PetscErrorCode EPSComputeResidualNorm(EPS eps,PetscInt i,PetscReal *r) {return EPSComputeError(eps,i,EPS_ERROR_ABSOLUTE,r);}
    250: SLEPC_EXTERN PetscErrorCode EPSGetInvariantSubspace(EPS,Vec[]);
    251: SLEPC_EXTERN PetscErrorCode EPSGetErrorEstimate(EPS,PetscInt,PetscReal*);

    253: SLEPC_EXTERN PetscErrorCode EPSMonitor(EPS,PetscInt,PetscInt,PetscScalar*,PetscScalar*,PetscReal*,PetscInt);
    254: SLEPC_EXTERN PetscErrorCode EPSMonitorSet(EPS,PetscErrorCode (*)(EPS,PetscInt,PetscInt,PetscScalar*,PetscScalar*,PetscReal*,PetscInt,void*),void*,PetscErrorCode (*)(void**));
    255: SLEPC_EXTERN PetscErrorCode EPSMonitorSetFromOptions(EPS,const char*,const char*,const char*,PetscErrorCode (*)(EPS,PetscInt,PetscInt,PetscScalar*,PetscScalar*,PetscReal*,PetscInt,PetscViewerAndFormat*),PetscBool);
    256: SLEPC_EXTERN PetscErrorCode EPSConvMonitorSetFromOptions(EPS,const char*,const char*,const char*,PetscErrorCode (*)(EPS,PetscInt,PetscInt,PetscScalar*,PetscScalar*,PetscReal*,PetscInt,SlepcConvMonitor));
    257: SLEPC_EXTERN PetscErrorCode EPSMonitorCancel(EPS);
    258: SLEPC_EXTERN PetscErrorCode EPSGetMonitorContext(EPS,void**);
    259: SLEPC_EXTERN PetscErrorCode EPSGetIterationNumber(EPS,PetscInt*);

    261: SLEPC_EXTERN PetscErrorCode EPSSetWhichEigenpairs(EPS,EPSWhich);
    262: SLEPC_EXTERN PetscErrorCode EPSGetWhichEigenpairs(EPS,EPSWhich*);
    263: SLEPC_EXTERN PetscErrorCode EPSSetTwoSided(EPS,PetscBool);
    264: SLEPC_EXTERN PetscErrorCode EPSGetTwoSided(EPS,PetscBool*);
    265: SLEPC_EXTERN PetscErrorCode EPSSetTrueResidual(EPS,PetscBool);
    266: SLEPC_EXTERN PetscErrorCode EPSGetTrueResidual(EPS,PetscBool*);
    267: SLEPC_EXTERN PetscErrorCode EPSSetPurify(EPS,PetscBool);
    268: SLEPC_EXTERN PetscErrorCode EPSGetPurify(EPS,PetscBool*);
    269: SLEPC_EXTERN PetscErrorCode EPSSetEigenvalueComparison(EPS,PetscErrorCode (*func)(PetscScalar,PetscScalar,PetscScalar,PetscScalar,PetscInt*,void*),void*);
    270: SLEPC_EXTERN PetscErrorCode EPSSetArbitrarySelection(EPS,PetscErrorCode (*func)(PetscScalar,PetscScalar,Vec,Vec,PetscScalar*,PetscScalar*,void*),void*);
    271: SLEPC_EXTERN PetscErrorCode EPSIsGeneralized(EPS,PetscBool*);
    272: SLEPC_EXTERN PetscErrorCode EPSIsHermitian(EPS,PetscBool*);
    273: SLEPC_EXTERN PetscErrorCode EPSIsPositive(EPS,PetscBool*);

    275: SLEPC_EXTERN PetscErrorCode EPSMonitorFirst(EPS,PetscInt,PetscInt,PetscScalar*,PetscScalar*,PetscReal*,PetscInt,PetscViewerAndFormat*);
    276: SLEPC_EXTERN PetscErrorCode EPSMonitorAll(EPS,PetscInt,PetscInt,PetscScalar*,PetscScalar*,PetscReal*,PetscInt,PetscViewerAndFormat*);
    277: SLEPC_EXTERN PetscErrorCode EPSMonitorConverged(EPS,PetscInt,PetscInt,PetscScalar*,PetscScalar*,PetscReal*,PetscInt,SlepcConvMonitor);
    278: SLEPC_EXTERN PetscErrorCode EPSMonitorLGCreate(MPI_Comm,const char[],const char[],int,int,int,int,PetscDrawLG*);
    279: SLEPC_EXTERN PetscErrorCode EPSMonitorLG(EPS,PetscInt,PetscInt,PetscScalar*,PetscScalar*,PetscReal*,PetscInt,void*);
    280: SLEPC_EXTERN PetscErrorCode EPSMonitorLGAll(EPS,PetscInt,PetscInt,PetscScalar*,PetscScalar*,PetscReal*,PetscInt,void*);

    282: SLEPC_EXTERN PetscErrorCode EPSSetTrackAll(EPS,PetscBool);
    283: SLEPC_EXTERN PetscErrorCode EPSGetTrackAll(EPS,PetscBool*);

    285: SLEPC_EXTERN PetscErrorCode EPSSetDeflationSpace(EPS,PetscInt,Vec[]);
    286: SLEPC_EXTERN PetscErrorCode EPSSetInitialSpace(EPS,PetscInt,Vec[]);
    287: SLEPC_EXTERN PetscErrorCode EPSSetLeftInitialSpace(EPS,PetscInt,Vec[]);

    289: SLEPC_EXTERN PetscErrorCode EPSSetOptionsPrefix(EPS,const char*);
    290: SLEPC_EXTERN PetscErrorCode EPSAppendOptionsPrefix(EPS,const char*);
    291: SLEPC_EXTERN PetscErrorCode EPSGetOptionsPrefix(EPS,const char*[]);

    293: SLEPC_EXTERN PetscFunctionList EPSList;
    294: SLEPC_EXTERN PetscErrorCode EPSRegister(const char[],PetscErrorCode(*)(EPS));

    296: SLEPC_EXTERN PetscErrorCode EPSSetWorkVecs(EPS,PetscInt);
    297: SLEPC_EXTERN PetscErrorCode EPSAllocateSolution(EPS,PetscInt);

    299: /* --------- options specific to particular eigensolvers -------- */

    301: /*E
    302:     EPSPowerShiftType - determines the type of shift used in the Power iteration

    304:     Level: advanced

    306: .seealso: EPSPowerSetShiftType(), EPSPowerGetShiftType()
    307: E*/
    308: typedef enum { EPS_POWER_SHIFT_CONSTANT,
    309:                EPS_POWER_SHIFT_RAYLEIGH,
    310:                EPS_POWER_SHIFT_WILKINSON } EPSPowerShiftType;
    311: SLEPC_EXTERN const char *EPSPowerShiftTypes[];

    313: SLEPC_EXTERN PetscErrorCode EPSPowerSetShiftType(EPS,EPSPowerShiftType);
    314: SLEPC_EXTERN PetscErrorCode EPSPowerGetShiftType(EPS,EPSPowerShiftType*);
    315: SLEPC_EXTERN PetscErrorCode EPSPowerSetNonlinear(EPS,PetscBool);
    316: SLEPC_EXTERN PetscErrorCode EPSPowerGetNonlinear(EPS,PetscBool*);
    317: SLEPC_EXTERN PetscErrorCode EPSPowerSetUpdate(EPS,PetscBool);
    318: SLEPC_EXTERN PetscErrorCode EPSPowerGetUpdate(EPS,PetscBool*);
    319: SLEPC_EXTERN PetscErrorCode EPSPowerSetSNES(EPS,SNES);
    320: SLEPC_EXTERN PetscErrorCode EPSPowerGetSNES(EPS,SNES*);

    322: SLEPC_EXTERN PetscErrorCode EPSArnoldiSetDelayed(EPS,PetscBool);
    323: SLEPC_EXTERN PetscErrorCode EPSArnoldiGetDelayed(EPS,PetscBool*);

    325: SLEPC_EXTERN PetscErrorCode EPSKrylovSchurSetRestart(EPS,PetscReal);
    326: SLEPC_EXTERN PetscErrorCode EPSKrylovSchurGetRestart(EPS,PetscReal*);
    327: SLEPC_EXTERN PetscErrorCode EPSKrylovSchurSetLocking(EPS,PetscBool);
    328: SLEPC_EXTERN PetscErrorCode EPSKrylovSchurGetLocking(EPS,PetscBool*);
    329: SLEPC_EXTERN PetscErrorCode EPSKrylovSchurSetPartitions(EPS,PetscInt);
    330: SLEPC_EXTERN PetscErrorCode EPSKrylovSchurGetPartitions(EPS,PetscInt*);
    331: SLEPC_EXTERN PetscErrorCode EPSKrylovSchurSetDetectZeros(EPS,PetscBool);
    332: SLEPC_EXTERN PetscErrorCode EPSKrylovSchurGetDetectZeros(EPS,PetscBool*);
    333: SLEPC_EXTERN PetscErrorCode EPSKrylovSchurSetDimensions(EPS,PetscInt,PetscInt,PetscInt);
    334: SLEPC_EXTERN PetscErrorCode EPSKrylovSchurGetDimensions(EPS,PetscInt*,PetscInt*,PetscInt*);
    335: SLEPC_EXTERN PetscErrorCode EPSKrylovSchurSetSubintervals(EPS,PetscReal*);
    336: SLEPC_EXTERN PetscErrorCode EPSKrylovSchurGetSubintervals(EPS,PetscReal**);
    337: SLEPC_EXTERN PetscErrorCode EPSKrylovSchurGetInertias(EPS,PetscInt*,PetscReal**,PetscInt**);
    338: SLEPC_EXTERN PetscErrorCode EPSKrylovSchurGetSubcommInfo(EPS,PetscInt*,PetscInt*,Vec*);
    339: SLEPC_EXTERN PetscErrorCode EPSKrylovSchurGetSubcommPairs(EPS,PetscInt,PetscScalar*,Vec);
    340: SLEPC_EXTERN PetscErrorCode EPSKrylovSchurGetSubcommMats(EPS,Mat*,Mat*);
    341: SLEPC_EXTERN PetscErrorCode EPSKrylovSchurUpdateSubcommMats(EPS,PetscScalar,PetscScalar,Mat,PetscScalar,PetscScalar, Mat,MatStructure,PetscBool);

    343: /*E
    344:     EPSLanczosReorthogType - determines the type of reorthogonalization
    345:     used in the Lanczos method

    347:     Level: advanced

    349: .seealso: EPSLanczosSetReorthog(), EPSLanczosGetReorthog()
    350: E*/
    351: typedef enum { EPS_LANCZOS_REORTHOG_LOCAL,
    352:                EPS_LANCZOS_REORTHOG_FULL,
    353:                EPS_LANCZOS_REORTHOG_SELECTIVE,
    354:                EPS_LANCZOS_REORTHOG_PERIODIC,
    355:                EPS_LANCZOS_REORTHOG_PARTIAL,
    356:                EPS_LANCZOS_REORTHOG_DELAYED } EPSLanczosReorthogType;
    357: SLEPC_EXTERN const char *EPSLanczosReorthogTypes[];

    359: SLEPC_EXTERN PetscErrorCode EPSLanczosSetReorthog(EPS,EPSLanczosReorthogType);
    360: SLEPC_EXTERN PetscErrorCode EPSLanczosGetReorthog(EPS,EPSLanczosReorthogType*);

    362: SLEPC_EXTERN PetscErrorCode EPSBlzpackSetBlockSize(EPS,PetscInt);
    363: SLEPC_EXTERN PetscErrorCode EPSBlzpackGetBlockSize(EPS,PetscInt*);
    364: SLEPC_EXTERN PetscErrorCode EPSBlzpackSetNSteps(EPS,PetscInt);
    365: SLEPC_EXTERN PetscErrorCode EPSBlzpackGetNSteps(EPS,PetscInt*);

    367: /*E
    368:     EPSPRIMMEMethod - determines the method selected in the PRIMME library

    370:     Level: advanced

    372: .seealso: EPSPRIMMESetMethod(), EPSPRIMMEGetMethod()
    373: E*/
    374: typedef enum { EPS_PRIMME_DYNAMIC=1,
    375:                EPS_PRIMME_DEFAULT_MIN_TIME,
    376:                EPS_PRIMME_DEFAULT_MIN_MATVECS,
    377:                EPS_PRIMME_ARNOLDI,
    378:                EPS_PRIMME_GD,
    379:                EPS_PRIMME_GD_PLUSK,
    380:                EPS_PRIMME_GD_OLSEN_PLUSK,
    381:                EPS_PRIMME_JD_OLSEN_PLUSK,
    382:                EPS_PRIMME_RQI,
    383:                EPS_PRIMME_JDQR,
    384:                EPS_PRIMME_JDQMR,
    385:                EPS_PRIMME_JDQMR_ETOL,
    386:                EPS_PRIMME_SUBSPACE_ITERATION,
    387:                EPS_PRIMME_LOBPCG_ORTHOBASIS,
    388:                EPS_PRIMME_LOBPCG_ORTHOBASISW } EPSPRIMMEMethod;
    389: SLEPC_EXTERN const char *EPSPRIMMEMethods[];

    391: SLEPC_EXTERN PetscErrorCode EPSPRIMMESetBlockSize(EPS,PetscInt);
    392: SLEPC_EXTERN PetscErrorCode EPSPRIMMEGetBlockSize(EPS,PetscInt*);
    393: SLEPC_EXTERN PetscErrorCode EPSPRIMMESetMethod(EPS,EPSPRIMMEMethod);
    394: SLEPC_EXTERN PetscErrorCode EPSPRIMMEGetMethod(EPS,EPSPRIMMEMethod*);

    396: SLEPC_EXTERN PetscErrorCode EPSGDSetKrylovStart(EPS,PetscBool);
    397: SLEPC_EXTERN PetscErrorCode EPSGDGetKrylovStart(EPS,PetscBool*);
    398: SLEPC_EXTERN PetscErrorCode EPSGDSetBlockSize(EPS,PetscInt);
    399: SLEPC_EXTERN PetscErrorCode EPSGDGetBlockSize(EPS,PetscInt*);
    400: SLEPC_EXTERN PetscErrorCode EPSGDSetRestart(EPS,PetscInt,PetscInt);
    401: SLEPC_EXTERN PetscErrorCode EPSGDGetRestart(EPS,PetscInt*,PetscInt*);
    402: SLEPC_EXTERN PetscErrorCode EPSGDSetInitialSize(EPS,PetscInt);
    403: SLEPC_EXTERN PetscErrorCode EPSGDGetInitialSize(EPS,PetscInt*);
    404: SLEPC_EXTERN PetscErrorCode EPSGDSetBOrth(EPS,PetscBool);
    405: SLEPC_EXTERN PetscErrorCode EPSGDGetBOrth(EPS,PetscBool*);
    406: SLEPC_EXTERN PetscErrorCode EPSGDSetDoubleExpansion(EPS,PetscBool);
    407: SLEPC_EXTERN PetscErrorCode EPSGDGetDoubleExpansion(EPS,PetscBool*);

    409: SLEPC_EXTERN PetscErrorCode EPSJDSetKrylovStart(EPS,PetscBool);
    410: SLEPC_EXTERN PetscErrorCode EPSJDGetKrylovStart(EPS,PetscBool*);
    411: SLEPC_EXTERN PetscErrorCode EPSJDSetBlockSize(EPS,PetscInt);
    412: SLEPC_EXTERN PetscErrorCode EPSJDGetBlockSize(EPS,PetscInt*);
    413: SLEPC_EXTERN PetscErrorCode EPSJDSetRestart(EPS,PetscInt,PetscInt);
    414: SLEPC_EXTERN PetscErrorCode EPSJDGetRestart(EPS,PetscInt*,PetscInt*);
    415: SLEPC_EXTERN PetscErrorCode EPSJDSetInitialSize(EPS,PetscInt);
    416: SLEPC_EXTERN PetscErrorCode EPSJDGetInitialSize(EPS,PetscInt*);
    417: SLEPC_EXTERN PetscErrorCode EPSJDSetFix(EPS,PetscReal);
    418: SLEPC_EXTERN PetscErrorCode EPSJDGetFix(EPS,PetscReal*);
    419: SLEPC_EXTERN PetscErrorCode EPSJDSetConstCorrectionTol(EPS,PetscBool);
    420: SLEPC_EXTERN PetscErrorCode EPSJDGetConstCorrectionTol(EPS,PetscBool*);
    421: SLEPC_EXTERN PetscErrorCode EPSJDSetBOrth(EPS,PetscBool);
    422: SLEPC_EXTERN PetscErrorCode EPSJDGetBOrth(EPS,PetscBool*);

    424: SLEPC_EXTERN PetscErrorCode EPSRQCGSetReset(EPS,PetscInt);
    425: SLEPC_EXTERN PetscErrorCode EPSRQCGGetReset(EPS,PetscInt*);

    427: SLEPC_EXTERN PetscErrorCode EPSLOBPCGSetBlockSize(EPS,PetscInt);
    428: SLEPC_EXTERN PetscErrorCode EPSLOBPCGGetBlockSize(EPS,PetscInt*);
    429: SLEPC_EXTERN PetscErrorCode EPSLOBPCGSetRestart(EPS,PetscReal);
    430: SLEPC_EXTERN PetscErrorCode EPSLOBPCGGetRestart(EPS,PetscReal*);
    431: SLEPC_EXTERN PetscErrorCode EPSLOBPCGSetLocking(EPS,PetscBool);
    432: SLEPC_EXTERN PetscErrorCode EPSLOBPCGGetLocking(EPS,PetscBool*);

    434: /*E
    435:     EPSCISSQuadRule - determines the quadrature rule in the CISS solver

    437:     Level: advanced

    439: .seealso: EPSCISSSetQuadRule(), EPSCISSGetQuadRule()
    440: E*/
    441: typedef enum { EPS_CISS_QUADRULE_TRAPEZOIDAL=1,
    442:                EPS_CISS_QUADRULE_CHEBYSHEV } EPSCISSQuadRule;
    443: SLEPC_EXTERN const char *EPSCISSQuadRules[];

    445: /*E
    446:     EPSCISSExtraction - determines the extraction technique in the CISS solver

    448:     Level: advanced

    450: .seealso: EPSCISSSetExtraction(), EPSCISSGetExtraction()
    451: E*/
    452: typedef enum { EPS_CISS_EXTRACTION_RITZ,
    453:                EPS_CISS_EXTRACTION_HANKEL } EPSCISSExtraction;
    454: SLEPC_EXTERN const char *EPSCISSExtractions[];

    456: SLEPC_EXTERN PetscErrorCode EPSCISSSetExtraction(EPS,EPSCISSExtraction);
    457: SLEPC_EXTERN PetscErrorCode EPSCISSGetExtraction(EPS,EPSCISSExtraction*);
    458: SLEPC_EXTERN PetscErrorCode EPSCISSSetQuadRule(EPS,EPSCISSQuadRule);
    459: SLEPC_EXTERN PetscErrorCode EPSCISSGetQuadRule(EPS,EPSCISSQuadRule*);
    460: SLEPC_EXTERN PetscErrorCode EPSCISSSetSizes(EPS,PetscInt,PetscInt,PetscInt,PetscInt,PetscInt,PetscBool);
    461: SLEPC_EXTERN PetscErrorCode EPSCISSGetSizes(EPS,PetscInt*,PetscInt*,PetscInt*,PetscInt*,PetscInt*,PetscBool*);
    462: SLEPC_EXTERN PetscErrorCode EPSCISSSetThreshold(EPS,PetscReal,PetscReal);
    463: SLEPC_EXTERN PetscErrorCode EPSCISSGetThreshold(EPS,PetscReal*,PetscReal*);
    464: SLEPC_EXTERN PetscErrorCode EPSCISSSetRefinement(EPS,PetscInt,PetscInt);
    465: SLEPC_EXTERN PetscErrorCode EPSCISSGetRefinement(EPS,PetscInt*,PetscInt*);
    466: SLEPC_EXTERN PetscErrorCode EPSCISSSetUseST(EPS,PetscBool);
    467: SLEPC_EXTERN PetscErrorCode EPSCISSGetUseST(EPS,PetscBool*);
    468: SLEPC_EXTERN PetscErrorCode EPSCISSGetKSPs(EPS,PetscInt*,KSP**);

    470: SLEPC_EXTERN PetscErrorCode EPSLyapIISetLME(EPS,LME);
    471: SLEPC_EXTERN PetscErrorCode EPSLyapIIGetLME(EPS,LME*);
    472: SLEPC_EXTERN PetscErrorCode EPSLyapIISetRanks(EPS,PetscInt,PetscInt);
    473: SLEPC_EXTERN PetscErrorCode EPSLyapIIGetRanks(EPS,PetscInt*,PetscInt*);

    475: SLEPC_EXTERN PetscErrorCode EPSBLOPEXSetBlockSize(EPS,PetscInt);
    476: SLEPC_EXTERN PetscErrorCode EPSBLOPEXGetBlockSize(EPS,PetscInt*);

    478: SLEPC_EXTERN PetscErrorCode EPSFEASTSetNumPoints(EPS,PetscInt);
    479: SLEPC_EXTERN PetscErrorCode EPSFEASTGetNumPoints(EPS,PetscInt*);

    481: #endif