Actual source code: svdregis.c
slepc-3.10.1 2018-10-23
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: */

     11: #include <slepc/private/svdimpl.h>       /*I "slepcsvd.h" I*/

     13: PETSC_EXTERN PetscErrorCode SVDCreate_Cross(SVD);
     14: PETSC_EXTERN PetscErrorCode SVDCreate_Cyclic(SVD);
     15: PETSC_EXTERN PetscErrorCode SVDCreate_LAPACK(SVD);
     16: PETSC_EXTERN PetscErrorCode SVDCreate_Lanczos(SVD);
     17: PETSC_EXTERN PetscErrorCode SVDCreate_TRLanczos(SVD);
     18: #if defined(SLEPC_HAVE_PRIMME)
     19: PETSC_EXTERN PetscErrorCode SVDCreate_PRIMME(SVD);
     20: #endif

     22: /*@C
     23:    SVDRegisterAll - Registers all the singular value solvers in the SVD package.

     25:    Not Collective

     27:    Level: advanced

     29: .seealso:  SVDRegister()
     30: @*/
     31: PetscErrorCode SVDRegisterAll(void)
     32: {

     36:   if (SVDRegisterAllCalled) return(0);
     37:   SVDRegisterAllCalled = PETSC_TRUE;
     38:   SVDRegister(SVDCROSS,SVDCreate_Cross);
     39:   SVDRegister(SVDCYCLIC,SVDCreate_Cyclic);
     40:   SVDRegister(SVDLAPACK,SVDCreate_LAPACK);
     41:   SVDRegister(SVDLANCZOS,SVDCreate_Lanczos);
     42:   SVDRegister(SVDTRLANCZOS,SVDCreate_TRLanczos);
     43: #if defined(SLEPC_HAVE_PRIMME)
     44:   SVDRegister(SVDPRIMME,SVDCreate_PRIMME);
     45: #endif
     46:   return(0);
     47: }