suanPan
FEAST.h
Go to the documentation of this file.
1/*******************************************************************************
2 * Copyright (C) 2017-2024 Theodore Chang
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 ******************************************************************************/
28#ifndef FEAST_H
29#define FEAST_H
30
31#include <Solver/Solver.h>
32
33template<sp_d T> class Factory;
35
36class FEAST final : public Solver {
37 static char UPLO;
38
39 const bool quadratic = false;
40
41 const unsigned eigen_num;
42 const double centre, radius;
43
44 [[nodiscard]] int linear_solve(const shared_ptr<LongFactory>&) const;
45 [[nodiscard]] int quadratic_solve(const shared_ptr<LongFactory>&) const;
46
47public:
48 FEAST(unsigned, unsigned, double, double, bool);
49
50 int initialize() override;
51
52 int analyze() override;
53
54 void print() override;
55};
56
57#endif
58
A FEAST class defines a solver using FEAST iteration.
Definition: FEAST.h:36
int analyze() override
Definition: FEAST.cpp:220
void print() override
Definition: FEAST.cpp:237
int initialize() override
Definition: FEAST.cpp:196
FEAST(unsigned, unsigned, double, double, bool)
Definition: FEAST.cpp:189
A Factory class.
Definition: Factory.hpp:73
A Solver class defines solvers used in analysis.
Definition: Solver.h:38