/usr/include/HYPRE_lobpcg.h is in libhypre-dev 2.4.0b-7.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 | /*BHEADER**********************************************************************
* Copyright (c) 2008, Lawrence Livermore National Security, LLC.
* Produced at the Lawrence Livermore National Laboratory.
* This file is part of HYPRE. See file COPYRIGHT for details.
*
* HYPRE is free software; you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License (as published by the Free
* Software Foundation) version 2.1 dated February 1999.
*
* $Revision: 2.7 $
***********************************************************************EHEADER*/
#include "krylov.h"
#include "fortran_matrix.h"
#include "multivector.h"
#include "interpreter.h"
#include "HYPRE_MatvecFunctions.h"
#ifndef hypre_LOBPCG_SOLVER
#define hypre_LOBPCG_SOLVER
#ifdef __cplusplus
extern "C" {
#endif
/* HYPRE_lobpcg.c */
/* LOBPCG Constructor */
void
HYPRE_LOBPCGCreate( mv_InterfaceInterpreter*, HYPRE_MatvecFunctions*,
HYPRE_Solver* );
/* LOBPCG Destructor */
int
HYPRE_LOBPCGDestroy( HYPRE_Solver solver );
/* Sets the preconditioner; if not called, preconditioning is not used */
int
HYPRE_LOBPCGSetPrecond( HYPRE_Solver solver,
HYPRE_PtrToSolverFcn precond,
HYPRE_PtrToSolverFcn precond_setup,
HYPRE_Solver precond_solver );
int
HYPRE_LOBPCGGetPrecond( HYPRE_Solver solver , HYPRE_Solver *precond_data_ptr );
/* Sets up A and the preconditioner, if there is one (see above) */
int
HYPRE_LOBPCGSetup( HYPRE_Solver solver,
HYPRE_Matrix A, HYPRE_Vector b, HYPRE_Vector x );
/* Sets up B; if not called, B = I */
int
HYPRE_LOBPCGSetupB( HYPRE_Solver solver,
HYPRE_Matrix B, HYPRE_Vector x );
/* If called, makes the preconditionig to be applyed to Tx = b, not Ax = b */
int
HYPRE_LOBPCGSetupT( HYPRE_Solver solver,
HYPRE_Matrix T, HYPRE_Vector x );
/* Solves A x = lambda B x, y'x = 0 */
int
HYPRE_LOBPCGSolve( HYPRE_Solver data, mv_MultiVectorPtr y,
mv_MultiVectorPtr x, double* lambda );
/* Sets the absolute tolerance */
int
HYPRE_LOBPCGSetTol( HYPRE_Solver solver, double tol );
/* Sets the maximal number of iterations */
int
HYPRE_LOBPCGSetMaxIter( HYPRE_Solver solver, int maxIter );
/* Defines which initial guess for inner PCG iterations to use:
mode = 0: use zero initial guess, otherwise use RHS */
int
HYPRE_LOBPCGSetPrecondUsageMode( HYPRE_Solver solver, int mode );
/* Sets the level of printout */
int
HYPRE_LOBPCGSetPrintLevel( HYPRE_Solver solver , int level );
/* Returns the pointer to residual norms matrix (blockSize x 1)*/
utilities_FortranMatrix*
HYPRE_LOBPCGResidualNorms( HYPRE_Solver solver );
/* Returns the pointer to residual norms history matrix (blockSize x maxIter)*/
utilities_FortranMatrix*
HYPRE_LOBPCGResidualNormsHistory( HYPRE_Solver solver );
/* Returns the pointer to eigenvalue history matrix (blockSize x maxIter)*/
utilities_FortranMatrix*
HYPRE_LOBPCGEigenvaluesHistory( HYPRE_Solver solver );
/* Returns the number of iterations performed by LOBPCG */
int
HYPRE_LOBPCGIterations( HYPRE_Solver solver );
void
hypre_LOBPCGMultiOperatorB( void *data, void * x, void* y );
void
lobpcg_MultiVectorByMultiVector(
mv_MultiVectorPtr x,
mv_MultiVectorPtr y,
utilities_FortranMatrix* xy);
#ifdef __cplusplus
}
#endif
#endif /* HYPRE_LOBPCG_SOLVER */
|