Actual source code: slepceps.h
slepc-3.21.1 2024-04-26
Report Typos and Errors

      1: /*
      2:    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      3:    SLEPc - Scalable Library for Eigenvalue Problem Computations
      4:    Copyright (c) 2002-, 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: #pragma once

     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: /* SUBMANSEC = EPS */

     25: SLEPC_EXTERN PetscErrorCode EPSInitializePackage(void);
     26: SLEPC_EXTERN PetscErrorCode EPSFinalizePackage(void);

     28: /*S
     29:     EPS - Abstract SLEPc object that manages all the eigenvalue
     30:     problem solvers.

     32:     Level: beginner

     34: .seealso:  EPSCreate(), ST
     35: S*/
     36: typedef struct _p_EPS* EPS;

     38: /*J
     39:     EPSType - String with the name of a SLEPc eigensolver

     41:     Level: beginner

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

     68: /* Logging support */
     69: SLEPC_EXTERN PetscClassId EPS_CLASSID;

     71: /*E
     72:     EPSProblemType - Determines the type of eigenvalue problem

     74:     Level: beginner

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

     85: /*E
     86:     EPSExtraction - Determines the type of extraction technique employed
     87:     by the eigensolver

     89:     Level: advanced

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

    101: /*E
    102:     EPSWhich - Determines which part of the spectrum is requested

    104:     Level: intermediate

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

    120: /*E
    121:     EPSBalance - The type of balancing used for non-Hermitian problems

    123:     Level: intermediate

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

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

    136:     Level: intermediate

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

    145: /*E
    146:     EPSConv - Determines the convergence test

    148:     Level: intermediate

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

    157: /*E
    158:     EPSStop - Determines the stopping test

    160:     Level: advanced

    162: .seealso: EPSSetStoppingTest(), EPSSetStoppingTestFunction()
    163: E*/
    164: typedef enum { EPS_STOP_BASIC,
    165:                EPS_STOP_USER } EPSStop;

    167: /*E
    168:     EPSConvergedReason - Reason an eigensolver was said to
    169:          have converged or diverged

    171:     Level: intermediate

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

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

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

    242: SLEPC_EXTERN PetscErrorCode EPSSetDimensions(EPS,PetscInt,PetscInt,PetscInt);
    243: SLEPC_EXTERN PetscErrorCode EPSGetDimensions(EPS,PetscInt*,PetscInt*,PetscInt*);

    245: SLEPC_EXTERN PetscErrorCode EPSGetConverged(EPS,PetscInt*);
    246: SLEPC_EXTERN PetscErrorCode EPSGetEigenpair(EPS,PetscInt,PetscScalar*,PetscScalar*,Vec,Vec);
    247: SLEPC_EXTERN PetscErrorCode EPSGetEigenvalue(EPS,PetscInt,PetscScalar*,PetscScalar*);
    248: SLEPC_EXTERN PetscErrorCode EPSGetEigenvector(EPS,PetscInt,Vec,Vec);
    249: SLEPC_EXTERN PetscErrorCode EPSGetLeftEigenvector(EPS,PetscInt,Vec,Vec);

    251: SLEPC_EXTERN PetscErrorCode EPSComputeError(EPS,PetscInt,EPSErrorType,PetscReal*);
    252: PETSC_DEPRECATED_FUNCTION(3, 6, 0, "EPSComputeError()", ) static inline PetscErrorCode EPSComputeRelativeError(EPS eps,PetscInt i,PetscReal *r) {return EPSComputeError(eps,i,EPS_ERROR_RELATIVE,r);}
    253: PETSC_DEPRECATED_FUNCTION(3, 6, 0, "EPSComputeError() with EPS_ERROR_ABSOLUTE", ) static inline PetscErrorCode EPSComputeResidualNorm(EPS eps,PetscInt i,PetscReal *r) {return EPSComputeError(eps,i,EPS_ERROR_ABSOLUTE,r);}
    254: SLEPC_EXTERN PetscErrorCode EPSGetInvariantSubspace(EPS,Vec[]);
    255: SLEPC_EXTERN PetscErrorCode EPSGetErrorEstimate(EPS,PetscInt,PetscReal*);
    256: SLEPC_EXTERN PetscErrorCode EPSGetIterationNumber(EPS,PetscInt*);

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

    272: SLEPC_EXTERN PetscErrorCode EPSSetTrackAll(EPS,PetscBool);
    273: SLEPC_EXTERN PetscErrorCode EPSGetTrackAll(EPS,PetscBool*);

    275: SLEPC_EXTERN PetscErrorCode EPSSetDeflationSpace(EPS,PetscInt,Vec[]);
    276: SLEPC_EXTERN PetscErrorCode EPSSetInitialSpace(EPS,PetscInt,Vec[]);
    277: SLEPC_EXTERN PetscErrorCode EPSSetLeftInitialSpace(EPS,PetscInt,Vec[]);

    279: SLEPC_EXTERN PetscErrorCode EPSMonitor(EPS,PetscInt,PetscInt,PetscScalar*,PetscScalar*,PetscReal*,PetscInt);
    280: SLEPC_EXTERN PetscErrorCode EPSMonitorSet(EPS,PetscErrorCode (*)(EPS,PetscInt,PetscInt,PetscScalar*,PetscScalar*,PetscReal*,PetscInt,void*),void*,PetscErrorCode (*)(void**));
    281: SLEPC_EXTERN PetscErrorCode EPSMonitorCancel(EPS);
    282: SLEPC_EXTERN PetscErrorCode EPSGetMonitorContext(EPS,void*);

    284: SLEPC_EXTERN PetscErrorCode EPSMonitorSetFromOptions(EPS,const char[],const char[],void*,PetscBool);
    285: SLEPC_EXTERN PetscErrorCode EPSMonitorLGCreate(MPI_Comm,const char[],const char[],const char[],PetscInt,const char*[],int,int,int,int,PetscDrawLG*);
    286: SLEPC_EXTERN PetscErrorCode EPSMonitorFirst(EPS,PetscInt,PetscInt,PetscScalar*,PetscScalar*,PetscReal*,PetscInt,PetscViewerAndFormat*);
    287: SLEPC_EXTERN PetscErrorCode EPSMonitorFirstDrawLG(EPS,PetscInt,PetscInt,PetscScalar*,PetscScalar*,PetscReal*,PetscInt,PetscViewerAndFormat*);
    288: SLEPC_EXTERN PetscErrorCode EPSMonitorFirstDrawLGCreate(PetscViewer,PetscViewerFormat,void *,PetscViewerAndFormat**);
    289: SLEPC_EXTERN PetscErrorCode EPSMonitorAll(EPS,PetscInt,PetscInt,PetscScalar*,PetscScalar*,PetscReal*,PetscInt,PetscViewerAndFormat*);
    290: SLEPC_EXTERN PetscErrorCode EPSMonitorAllDrawLG(EPS,PetscInt,PetscInt,PetscScalar*,PetscScalar*,PetscReal*,PetscInt,PetscViewerAndFormat*);
    291: SLEPC_EXTERN PetscErrorCode EPSMonitorAllDrawLGCreate(PetscViewer,PetscViewerFormat,void *,PetscViewerAndFormat**);
    292: SLEPC_EXTERN PetscErrorCode EPSMonitorConverged(EPS,PetscInt,PetscInt,PetscScalar*,PetscScalar*,PetscReal*,PetscInt,PetscViewerAndFormat*);
    293: SLEPC_EXTERN PetscErrorCode EPSMonitorConvergedCreate(PetscViewer,PetscViewerFormat,void *,PetscViewerAndFormat**);
    294: SLEPC_EXTERN PetscErrorCode EPSMonitorConvergedDrawLG(EPS,PetscInt,PetscInt,PetscScalar*,PetscScalar*,PetscReal*,PetscInt,PetscViewerAndFormat*);
    295: SLEPC_EXTERN PetscErrorCode EPSMonitorConvergedDrawLGCreate(PetscViewer,PetscViewerFormat,void *,PetscViewerAndFormat**);
    296: SLEPC_EXTERN PetscErrorCode EPSMonitorConvergedDestroy(PetscViewerAndFormat**);

    298: SLEPC_EXTERN PetscErrorCode EPSSetOptionsPrefix(EPS,const char*);
    299: SLEPC_EXTERN PetscErrorCode EPSAppendOptionsPrefix(EPS,const char*);
    300: SLEPC_EXTERN PetscErrorCode EPSGetOptionsPrefix(EPS,const char*[]);

    302: SLEPC_EXTERN PetscFunctionList EPSList;
    303: SLEPC_EXTERN PetscFunctionList EPSMonitorList;
    304: SLEPC_EXTERN PetscFunctionList EPSMonitorCreateList;
    305: SLEPC_EXTERN PetscFunctionList EPSMonitorDestroyList;
    306: SLEPC_EXTERN PetscErrorCode EPSRegister(const char[],PetscErrorCode(*)(EPS));
    307: SLEPC_EXTERN PetscErrorCode EPSMonitorRegister(const char[],PetscViewerType,PetscViewerFormat,PetscErrorCode(*)(EPS,PetscInt,PetscInt,PetscScalar*,PetscScalar*,PetscReal*,PetscInt,PetscViewerAndFormat*),PetscErrorCode(*)(PetscViewer,PetscViewerFormat,void*,PetscViewerAndFormat**),PetscErrorCode(*)(PetscViewerAndFormat**));

    309: SLEPC_EXTERN PetscErrorCode EPSSetWorkVecs(EPS,PetscInt);
    310: SLEPC_EXTERN PetscErrorCode EPSAllocateSolution(EPS,PetscInt);

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

    314: /*E
    315:     EPSPowerShiftType - determines the type of shift used in the Power iteration

    317:     Level: advanced

    319: .seealso: EPSPowerSetShiftType(), EPSPowerGetShiftType()
    320: E*/
    321: typedef enum { EPS_POWER_SHIFT_CONSTANT,
    322:                EPS_POWER_SHIFT_RAYLEIGH,
    323:                EPS_POWER_SHIFT_WILKINSON } EPSPowerShiftType;
    324: SLEPC_EXTERN const char *EPSPowerShiftTypes[];

    326: SLEPC_EXTERN PetscErrorCode EPSPowerSetShiftType(EPS,EPSPowerShiftType);
    327: SLEPC_EXTERN PetscErrorCode EPSPowerGetShiftType(EPS,EPSPowerShiftType*);
    328: SLEPC_EXTERN PetscErrorCode EPSPowerSetNonlinear(EPS,PetscBool);
    329: SLEPC_EXTERN PetscErrorCode EPSPowerGetNonlinear(EPS,PetscBool*);
    330: SLEPC_EXTERN PetscErrorCode EPSPowerSetUpdate(EPS,PetscBool);
    331: SLEPC_EXTERN PetscErrorCode EPSPowerGetUpdate(EPS,PetscBool*);
    332: SLEPC_EXTERN PetscErrorCode EPSPowerSetSignNormalization(EPS,PetscBool);
    333: SLEPC_EXTERN PetscErrorCode EPSPowerGetSignNormalization(EPS,PetscBool*);
    334: SLEPC_EXTERN PetscErrorCode EPSPowerSetSNES(EPS,SNES);
    335: SLEPC_EXTERN PetscErrorCode EPSPowerGetSNES(EPS,SNES*);

    337: SLEPC_EXTERN PetscErrorCode EPSArnoldiSetDelayed(EPS,PetscBool);
    338: SLEPC_EXTERN PetscErrorCode EPSArnoldiGetDelayed(EPS,PetscBool*);

    340: SLEPC_EXTERN PetscErrorCode EPSKrylovSchurSetRestart(EPS,PetscReal);
    341: SLEPC_EXTERN PetscErrorCode EPSKrylovSchurGetRestart(EPS,PetscReal*);
    342: SLEPC_EXTERN PetscErrorCode EPSKrylovSchurSetLocking(EPS,PetscBool);
    343: SLEPC_EXTERN PetscErrorCode EPSKrylovSchurGetLocking(EPS,PetscBool*);
    344: SLEPC_EXTERN PetscErrorCode EPSKrylovSchurSetPartitions(EPS,PetscInt);
    345: SLEPC_EXTERN PetscErrorCode EPSKrylovSchurGetPartitions(EPS,PetscInt*);
    346: SLEPC_EXTERN PetscErrorCode EPSKrylovSchurSetDetectZeros(EPS,PetscBool);
    347: SLEPC_EXTERN PetscErrorCode EPSKrylovSchurGetDetectZeros(EPS,PetscBool*);
    348: SLEPC_EXTERN PetscErrorCode EPSKrylovSchurSetDimensions(EPS,PetscInt,PetscInt,PetscInt);
    349: SLEPC_EXTERN PetscErrorCode EPSKrylovSchurGetDimensions(EPS,PetscInt*,PetscInt*,PetscInt*);
    350: SLEPC_EXTERN PetscErrorCode EPSKrylovSchurSetSubintervals(EPS,PetscReal*);
    351: SLEPC_EXTERN PetscErrorCode EPSKrylovSchurGetSubintervals(EPS,PetscReal**);
    352: SLEPC_EXTERN PetscErrorCode EPSKrylovSchurGetInertias(EPS,PetscInt*,PetscReal**,PetscInt**);
    353: SLEPC_EXTERN PetscErrorCode EPSKrylovSchurGetSubcommInfo(EPS,PetscInt*,PetscInt*,Vec*);
    354: SLEPC_EXTERN PetscErrorCode EPSKrylovSchurGetSubcommPairs(EPS,PetscInt,PetscScalar*,Vec);
    355: SLEPC_EXTERN PetscErrorCode EPSKrylovSchurGetSubcommMats(EPS,Mat*,Mat*);
    356: SLEPC_EXTERN PetscErrorCode EPSKrylovSchurUpdateSubcommMats(EPS,PetscScalar,PetscScalar,Mat,PetscScalar,PetscScalar, Mat,MatStructure,PetscBool);
    357: SLEPC_EXTERN PetscErrorCode EPSKrylovSchurGetKSP(EPS,KSP*);

    359: /*E
    360:     EPSLanczosReorthogType - determines the type of reorthogonalization
    361:     used in the Lanczos method

    363:     Level: advanced

    365: .seealso: EPSLanczosSetReorthog(), EPSLanczosGetReorthog()
    366: E*/
    367: typedef enum { EPS_LANCZOS_REORTHOG_LOCAL,
    368:                EPS_LANCZOS_REORTHOG_FULL,
    369:                EPS_LANCZOS_REORTHOG_SELECTIVE,
    370:                EPS_LANCZOS_REORTHOG_PERIODIC,
    371:                EPS_LANCZOS_REORTHOG_PARTIAL,
    372:                EPS_LANCZOS_REORTHOG_DELAYED } EPSLanczosReorthogType;
    373: SLEPC_EXTERN const char *EPSLanczosReorthogTypes[];

    375: SLEPC_EXTERN PetscErrorCode EPSLanczosSetReorthog(EPS,EPSLanczosReorthogType);
    376: SLEPC_EXTERN PetscErrorCode EPSLanczosGetReorthog(EPS,EPSLanczosReorthogType*);

    378: /*E
    379:     EPSPRIMMEMethod - determines the method selected in the PRIMME library

    381:     Level: advanced

    383: .seealso: EPSPRIMMESetMethod(), EPSPRIMMEGetMethod()
    384: E*/
    385: typedef enum { EPS_PRIMME_DYNAMIC=1,
    386:                EPS_PRIMME_DEFAULT_MIN_TIME,
    387:                EPS_PRIMME_DEFAULT_MIN_MATVECS,
    388:                EPS_PRIMME_ARNOLDI,
    389:                EPS_PRIMME_GD,
    390:                EPS_PRIMME_GD_PLUSK,
    391:                EPS_PRIMME_GD_OLSEN_PLUSK,
    392:                EPS_PRIMME_JD_OLSEN_PLUSK,
    393:                EPS_PRIMME_RQI,
    394:                EPS_PRIMME_JDQR,
    395:                EPS_PRIMME_JDQMR,
    396:                EPS_PRIMME_JDQMR_ETOL,
    397:                EPS_PRIMME_SUBSPACE_ITERATION,
    398:                EPS_PRIMME_LOBPCG_ORTHOBASIS,
    399:                EPS_PRIMME_LOBPCG_ORTHOBASISW } EPSPRIMMEMethod;
    400: SLEPC_EXTERN const char *EPSPRIMMEMethods[];

    402: SLEPC_EXTERN PetscErrorCode EPSPRIMMESetBlockSize(EPS,PetscInt);
    403: SLEPC_EXTERN PetscErrorCode EPSPRIMMEGetBlockSize(EPS,PetscInt*);
    404: SLEPC_EXTERN PetscErrorCode EPSPRIMMESetMethod(EPS,EPSPRIMMEMethod);
    405: SLEPC_EXTERN PetscErrorCode EPSPRIMMEGetMethod(EPS,EPSPRIMMEMethod*);

    407: SLEPC_EXTERN PetscErrorCode EPSGDSetKrylovStart(EPS,PetscBool);
    408: SLEPC_EXTERN PetscErrorCode EPSGDGetKrylovStart(EPS,PetscBool*);
    409: SLEPC_EXTERN PetscErrorCode EPSGDSetBlockSize(EPS,PetscInt);
    410: SLEPC_EXTERN PetscErrorCode EPSGDGetBlockSize(EPS,PetscInt*);
    411: SLEPC_EXTERN PetscErrorCode EPSGDSetRestart(EPS,PetscInt,PetscInt);
    412: SLEPC_EXTERN PetscErrorCode EPSGDGetRestart(EPS,PetscInt*,PetscInt*);
    413: SLEPC_EXTERN PetscErrorCode EPSGDSetInitialSize(EPS,PetscInt);
    414: SLEPC_EXTERN PetscErrorCode EPSGDGetInitialSize(EPS,PetscInt*);
    415: SLEPC_EXTERN PetscErrorCode EPSGDSetBOrth(EPS,PetscBool);
    416: SLEPC_EXTERN PetscErrorCode EPSGDGetBOrth(EPS,PetscBool*);
    417: SLEPC_EXTERN PetscErrorCode EPSGDSetDoubleExpansion(EPS,PetscBool);
    418: SLEPC_EXTERN PetscErrorCode EPSGDGetDoubleExpansion(EPS,PetscBool*);

    420: SLEPC_EXTERN PetscErrorCode EPSJDSetKrylovStart(EPS,PetscBool);
    421: SLEPC_EXTERN PetscErrorCode EPSJDGetKrylovStart(EPS,PetscBool*);
    422: SLEPC_EXTERN PetscErrorCode EPSJDSetBlockSize(EPS,PetscInt);
    423: SLEPC_EXTERN PetscErrorCode EPSJDGetBlockSize(EPS,PetscInt*);
    424: SLEPC_EXTERN PetscErrorCode EPSJDSetRestart(EPS,PetscInt,PetscInt);
    425: SLEPC_EXTERN PetscErrorCode EPSJDGetRestart(EPS,PetscInt*,PetscInt*);
    426: SLEPC_EXTERN PetscErrorCode EPSJDSetInitialSize(EPS,PetscInt);
    427: SLEPC_EXTERN PetscErrorCode EPSJDGetInitialSize(EPS,PetscInt*);
    428: SLEPC_EXTERN PetscErrorCode EPSJDSetFix(EPS,PetscReal);
    429: SLEPC_EXTERN PetscErrorCode EPSJDGetFix(EPS,PetscReal*);
    430: SLEPC_EXTERN PetscErrorCode EPSJDSetConstCorrectionTol(EPS,PetscBool);
    431: SLEPC_EXTERN PetscErrorCode EPSJDGetConstCorrectionTol(EPS,PetscBool*);
    432: SLEPC_EXTERN PetscErrorCode EPSJDSetBOrth(EPS,PetscBool);
    433: SLEPC_EXTERN PetscErrorCode EPSJDGetBOrth(EPS,PetscBool*);

    435: SLEPC_EXTERN PetscErrorCode EPSRQCGSetReset(EPS,PetscInt);
    436: SLEPC_EXTERN PetscErrorCode EPSRQCGGetReset(EPS,PetscInt*);

    438: SLEPC_EXTERN PetscErrorCode EPSLOBPCGSetBlockSize(EPS,PetscInt);
    439: SLEPC_EXTERN PetscErrorCode EPSLOBPCGGetBlockSize(EPS,PetscInt*);
    440: SLEPC_EXTERN PetscErrorCode EPSLOBPCGSetRestart(EPS,PetscReal);
    441: SLEPC_EXTERN PetscErrorCode EPSLOBPCGGetRestart(EPS,PetscReal*);
    442: SLEPC_EXTERN PetscErrorCode EPSLOBPCGSetLocking(EPS,PetscBool);
    443: SLEPC_EXTERN PetscErrorCode EPSLOBPCGGetLocking(EPS,PetscBool*);

    445: /*E
    446:     EPSCISSQuadRule - determines the quadrature rule in the CISS solver

    448:     Level: advanced

    450: .seealso: EPSCISSSetQuadRule(), EPSCISSGetQuadRule()
    451: E*/
    452: typedef enum { EPS_CISS_QUADRULE_TRAPEZOIDAL=1,
    453:                EPS_CISS_QUADRULE_CHEBYSHEV } EPSCISSQuadRule;
    454: SLEPC_EXTERN const char *EPSCISSQuadRules[];

    456: /*E
    457:     EPSCISSExtraction - determines the extraction technique in the CISS solver

    459:     Level: advanced

    461: .seealso: EPSCISSSetExtraction(), EPSCISSGetExtraction()
    462: E*/
    463: typedef enum { EPS_CISS_EXTRACTION_RITZ,
    464:                EPS_CISS_EXTRACTION_HANKEL } EPSCISSExtraction;
    465: SLEPC_EXTERN const char *EPSCISSExtractions[];

    467: SLEPC_EXTERN PetscErrorCode EPSCISSSetExtraction(EPS,EPSCISSExtraction);
    468: SLEPC_EXTERN PetscErrorCode EPSCISSGetExtraction(EPS,EPSCISSExtraction*);
    469: SLEPC_EXTERN PetscErrorCode EPSCISSSetQuadRule(EPS,EPSCISSQuadRule);
    470: SLEPC_EXTERN PetscErrorCode EPSCISSGetQuadRule(EPS,EPSCISSQuadRule*);
    471: SLEPC_EXTERN PetscErrorCode EPSCISSSetSizes(EPS,PetscInt,PetscInt,PetscInt,PetscInt,PetscInt,PetscBool);
    472: SLEPC_EXTERN PetscErrorCode EPSCISSGetSizes(EPS,PetscInt*,PetscInt*,PetscInt*,PetscInt*,PetscInt*,PetscBool*);
    473: SLEPC_EXTERN PetscErrorCode EPSCISSSetThreshold(EPS,PetscReal,PetscReal);
    474: SLEPC_EXTERN PetscErrorCode EPSCISSGetThreshold(EPS,PetscReal*,PetscReal*);
    475: SLEPC_EXTERN PetscErrorCode EPSCISSSetRefinement(EPS,PetscInt,PetscInt);
    476: SLEPC_EXTERN PetscErrorCode EPSCISSGetRefinement(EPS,PetscInt*,PetscInt*);
    477: SLEPC_EXTERN PetscErrorCode EPSCISSSetUseST(EPS,PetscBool);
    478: SLEPC_EXTERN PetscErrorCode EPSCISSGetUseST(EPS,PetscBool*);
    479: SLEPC_EXTERN PetscErrorCode EPSCISSGetKSPs(EPS,PetscInt*,KSP**);

    481: SLEPC_EXTERN PetscErrorCode EPSLyapIISetLME(EPS,LME);
    482: SLEPC_EXTERN PetscErrorCode EPSLyapIIGetLME(EPS,LME*);
    483: SLEPC_EXTERN PetscErrorCode EPSLyapIISetRanks(EPS,PetscInt,PetscInt);
    484: SLEPC_EXTERN PetscErrorCode EPSLyapIIGetRanks(EPS,PetscInt*,PetscInt*);

    486: SLEPC_EXTERN PetscErrorCode EPSBLOPEXSetBlockSize(EPS,PetscInt);
    487: SLEPC_EXTERN PetscErrorCode EPSBLOPEXGetBlockSize(EPS,PetscInt*);

    489: /*E
    490:     EPSEVSLDOSMethod - the method to approximate the density of states (DOS) in the EVSL solver

    492:     Level: advanced

    494: .seealso: EPSEVSLSetDOSParameters(), EPSEVSLGetDOSParameters()
    495: E*/
    496: typedef enum { EPS_EVSL_DOS_KPM,
    497:                EPS_EVSL_DOS_LANCZOS } EPSEVSLDOSMethod;
    498: SLEPC_EXTERN const char *EPSEVSLDOSMethods[];

    500: /*E
    501:     EPSEVSLDamping - the damping type used in the EVSL solver

    503:     Level: advanced

    505: .seealso: EPSEVSLSetDOSParameters(), EPSEVSLGetDOSParameters()
    506: E*/
    507: typedef enum { EPS_EVSL_DAMPING_NONE,
    508:                EPS_EVSL_DAMPING_JACKSON,
    509:                EPS_EVSL_DAMPING_SIGMA } EPSEVSLDamping;
    510: SLEPC_EXTERN const char *EPSEVSLDampings[];

    512: SLEPC_EXTERN PetscErrorCode EPSEVSLSetRange(EPS,PetscReal,PetscReal);
    513: SLEPC_EXTERN PetscErrorCode EPSEVSLGetRange(EPS,PetscReal*,PetscReal*);
    514: SLEPC_EXTERN PetscErrorCode EPSEVSLSetSlices(EPS,PetscInt);
    515: SLEPC_EXTERN PetscErrorCode EPSEVSLGetSlices(EPS,PetscInt*);
    516: SLEPC_EXTERN PetscErrorCode EPSEVSLSetDOSParameters(EPS,EPSEVSLDOSMethod,PetscInt,PetscInt,PetscInt,PetscInt);
    517: SLEPC_EXTERN PetscErrorCode EPSEVSLGetDOSParameters(EPS,EPSEVSLDOSMethod*,PetscInt*,PetscInt*,PetscInt*,PetscInt*);
    518: SLEPC_EXTERN PetscErrorCode EPSEVSLSetPolParameters(EPS,PetscInt,PetscReal);
    519: SLEPC_EXTERN PetscErrorCode EPSEVSLGetPolParameters(EPS,PetscInt*,PetscReal*);
    520: SLEPC_EXTERN PetscErrorCode EPSEVSLSetDamping(EPS,EPSEVSLDamping);
    521: SLEPC_EXTERN PetscErrorCode EPSEVSLGetDamping(EPS,EPSEVSLDamping*);

    523: SLEPC_EXTERN PetscErrorCode EPSFEASTSetNumPoints(EPS,PetscInt);
    524: SLEPC_EXTERN PetscErrorCode EPSFEASTGetNumPoints(EPS,PetscInt*);