Date: 2013-09-02T10:05:10+00:00

Actual source code: blzpackp.h

      1: /*
      2:    Private data structure used by the BLZPACK interface

      4:    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      5:    SLEPc - Scalable Library for Eigenvalue Problem Computations
      6:    Copyright (c) 2002-2013, Universitat Politecnica de Valencia, Spain

      8:    This file is part of SLEPc.

     10:    SLEPc is free software: you can redistribute it and/or modify it under  the
     11:    terms of version 3 of the GNU Lesser General Public License as published by
     12:    the Free Software Foundation.

     14:    SLEPc  is  distributed in the hope that it will be useful, but WITHOUT  ANY
     15:    WARRANTY;  without even the implied warranty of MERCHANTABILITY or  FITNESS
     16:    FOR  A  PARTICULAR PURPOSE. See the GNU Lesser General Public  License  for
     17:    more details.

     19:    You  should have received a copy of the GNU Lesser General  Public  License
     20:    along with SLEPc. If not, see <http://www.gnu.org/licenses/>.
     21:    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     22: */

     27: typedef struct {
     28:   PetscBLASInt         block_size;      /* block size */
     29:   PetscBLASInt         slice;           /* use spectrum slicing */
     30:   PetscBLASInt         nsteps;          /* maximum number of steps per run */
     31:   PetscBLASInt         *istor;
     32:   PetscReal            *rstor;
     33:   PetscScalar          *u;
     34:   PetscScalar          *v;
     35:   PetscScalar          *eig;
     36: } EPS_BLZPACK;

     38: /*
     39:    Definition of routines from the BLZPACK package
     40: */

     42: #if defined(SLEPC_BLZPACK_HAVE_UNDERSCORE)
     43: #define SLEPC_BLZPACK(lcase,ucase) lcase##_
     44: #elif defined(SLEPC_BLZPACK_HAVE_CAPS)
     45: #define SLEPC_BLZPACK(lcase,ucase) ucase
     46: #else
     47: #define SLEPC_BLZPACK(lcase,ucase) lcase
     48: #endif

     50: /*
     51:     These are real case, current version of BLZPACK only supports real
     52:     matrices
     53: */

     55: #if defined(PETSC_USE_SINGLE)
     56: /*
     57:    For these machines we must call the single precision Fortran version
     58: */
     59: #define BLZpack_ SLEPC_BLZPACK(blzdrs,BLZDRS)
     60: #else
     61: #define BLZpack_ SLEPC_BLZPACK(blzdrd,BLZDRD)
     62: #endif

     64: #define BLZistorr_ SLEPC_BLZPACK(istorr,ISTORR)
     65: #define BLZrstorr_ SLEPC_BLZPACK(rstorr,RSTORR)

     67: PETSC_EXTERN void BLZpack_(PetscBLASInt*,PetscReal*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscScalar*,PetscBLASInt*,PetscBLASInt*,PetscScalar*,PetscScalar*);

     69: PETSC_EXTERN PetscBLASInt BLZistorr_(PetscBLASInt*,const char*,int);
     70: PETSC_EXTERN PetscReal BLZrstorr_(PetscReal*,char*,int);

     72: #endif