DFT-EFE
 
Loading...
Searching...
No Matches
BisectionSolverFunction.h
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (c) 2021. *
3 * The Regents of the University of Michigan and DFT-EFE developers. *
4 * *
5 * This file is part of the DFT-EFE code. *
6 * *
7 * DFT-EFE is free software: you can redistribute it and/or modify *
8 * it under the terms of the Lesser GNU General Public License as *
9 * published by the Free Software Foundation, either version 3 of *
10 * the License, or (at your option) any later version. *
11 * *
12 * DFT-EFE is distributed in the hope that it will be useful, but *
13 * WITHOUT ANY WARRANTY; without even the implied warranty *
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
15 * See the Lesser GNU General Public License for more details. *
16 * *
17 * You should have received a copy of the GNU Lesser General Public *
18 * License at the top level of DFT-EFE distribution. If not, see *
19 * <https://www.gnu.org/licenses/>. *
20 ******************************************************************************/
21
22/*
23 * @author Avirup Sircar
24 */
25
26#ifndef dftefeBisectionSolverFunction_h
27#define dftefeBisectionSolverFunction_h
28
29#include <utils/TypeConfig.h>
31
32namespace dftefe
33{
34 namespace linearAlgebra
35 {
43 template <typename ValueType>
45 {
46 public:
47 virtual ~BisectionSolverFunction() = default;
48
49 virtual const ValueType
50 getValue(ValueType &x) const = 0;
51
52 virtual void
53 setSolution(const ValueType &x) = 0;
54
55 virtual void
56 getSolution(ValueType &solution) = 0;
57
63 virtual const ValueType
64 getLowerBound() const = 0;
65
69 virtual const ValueType
70 getUpperBound() const = 0;
71
72 }; // end of class BisectionSolverFunction
73 } // end of namespace linearAlgebra
74} // end of namespace dftefe
75#endif // dftefeBisectionSolverFunction_h
Interface a class must implement to have its root found by BisectionSolver. Unlike NewtonRaphsonSolve...
Definition: BisectionSolverFunction.h:45
virtual void setSolution(const ValueType &x)=0
virtual void getSolution(ValueType &solution)=0
virtual const ValueType getLowerBound() const =0
Lower end of an interval known to bracket the root, i.e. getValue(getLowerBound()) and getValue(getUp...
virtual const ValueType getUpperBound() const =0
Upper end of the bracketing interval. See getLowerBound().
virtual const ValueType getValue(ValueType &x) const =0
dealii includes
Definition: AtomFieldDataSpherical.cpp:31