Actual source code: linearp.h

slepc-3.9.0 2018-04-12
Report Typos and Errors
  1: /*
  2:    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  3:    SLEPc - Scalable Library for Eigenvalue Problem Computations
  4:    Copyright (c) 2002-2018, 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:    Private header for PEPLINEAR
 12: */


 17: typedef struct {
 18:   PetscBool  explicitmatrix;
 19:   PEP        pep;
 20:   PetscInt   cform;            /* companion form */
 21:   PetscReal  sfactor,dsfactor; /* scaling factors */
 22:   Mat        A,B;              /* matrices of generalized eigenproblem */
 23:   EPS        eps;              /* linear eigensolver for Az=lBz */
 24:   PetscBool  usereps;          /* eps provided by user */
 25:   Mat        M,C,K;            /* copy of PEP coefficient matrices */
 26:   Vec        w[6];             /* work vectors */
 27:   PetscBool  setfromoptionscalled;
 28: } PEP_LINEAR;

 30: /* General case for implicit matrices of degree d */
 31: PETSC_INTERN PetscErrorCode MatMult_Linear(Mat,Vec,Vec);

 33: /* N1 */
 34: PETSC_INTERN PetscErrorCode MatCreateExplicit_Linear_N1A(MPI_Comm,PEP_LINEAR*,Mat*);
 35: PETSC_INTERN PetscErrorCode MatCreateExplicit_Linear_N1B(MPI_Comm,PEP_LINEAR*,Mat*);

 37: /* N2 */
 38: PETSC_INTERN PetscErrorCode MatCreateExplicit_Linear_N2A(MPI_Comm,PEP_LINEAR*,Mat*);
 39: PETSC_INTERN PetscErrorCode MatCreateExplicit_Linear_N2B(MPI_Comm,PEP_LINEAR*,Mat*);

 41: /* S1 */
 42: PETSC_INTERN PetscErrorCode MatCreateExplicit_Linear_S1A(MPI_Comm,PEP_LINEAR*,Mat*);
 43: PETSC_INTERN PetscErrorCode MatCreateExplicit_Linear_S1B(MPI_Comm,PEP_LINEAR*,Mat*);

 45: /* S2 */
 46: PETSC_INTERN PetscErrorCode MatCreateExplicit_Linear_S2A(MPI_Comm,PEP_LINEAR*,Mat*);
 47: PETSC_INTERN PetscErrorCode MatCreateExplicit_Linear_S2B(MPI_Comm,PEP_LINEAR*,Mat*);

 49: /* H1 */
 50: PETSC_INTERN PetscErrorCode MatCreateExplicit_Linear_H1A(MPI_Comm,PEP_LINEAR*,Mat*);
 51: PETSC_INTERN PetscErrorCode MatCreateExplicit_Linear_H1B(MPI_Comm,PEP_LINEAR*,Mat*);

 53: /* H2 */
 54: PETSC_INTERN PetscErrorCode MatCreateExplicit_Linear_H2A(MPI_Comm,PEP_LINEAR*,Mat*);
 55: PETSC_INTERN PetscErrorCode MatCreateExplicit_Linear_H2B(MPI_Comm,PEP_LINEAR*,Mat*);

 57: #endif