DFT-EFE
 
Loading...
Searching...
No Matches
BisectionSolver.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 dftefeBisectionSolver_h
27#define dftefeBisectionSolver_h
28
29#include <utils/TypeConfig.h>
32
33namespace dftefe
34{
35 namespace linearAlgebra
36 {
63 template <typename ValueType>
65 {
66 public:
74 BisectionSolver(const size_type maxIter, const double tolerance);
75
79 ~BisectionSolver() = default;
80
88 solve(BisectionSolverFunction<ValueType> &bisectionSolverFunction);
89
90 private:
94 }; // end of class BisectionSolver
95 } // end of namespace linearAlgebra
96} // end of namespace dftefe
98#endif // dftefeBisectionSolver_h
Interface a class must implement to have its root found by BisectionSolver. Unlike NewtonRaphsonSolve...
Definition: BisectionSolverFunction.h:45
A class that implements the bisection method to find the root of a function, given an interval known ...
Definition: BisectionSolver.h:65
~BisectionSolver()=default
Default Destructor.
bool d_isSolved
Definition: BisectionSolver.h:93
size_type d_maxIter
Definition: BisectionSolver.h:91
double d_tolerance
Definition: BisectionSolver.h:92
BisectionError solve(BisectionSolverFunction< ValueType > &bisectionSolverFunction)
Function that initiates the bisection solve.
Definition: BisectionSolver.t.cpp:44
dealii includes
Definition: AtomFieldDataSpherical.cpp:31
std::uint64_t size_type
Definition: TypeConfig.h:9
Definition: LinearAlgebraTypes.h:175