DFT-EFE
 
Loading...
Searching...
No Matches
LinearSolverImpl.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 Bikash Kanungo
24 */
25
26#ifndef dftefeLinearSolverImpl_h
27#define dftefeLinearSolverImpl_h
28
29#include <utils/TypeConfig.h>
33
34namespace dftefe
35{
36 namespace linearAlgebra
37 {
56 template <typename ValueTypeOperator,
57 typename ValueTypeOperand,
58 utils::MemorySpace memorySpace>
60 {
61 public:
65 virtual ~LinearSolverImpl() = default;
66
79 virtual LinearSolverError
81 LinearSolverFunction<ValueTypeOperator, ValueTypeOperand, memorySpace>
82 &linearSolverFunction) = 0;
83 }; // end of class LinearSolverImpl
84 } // end of namespace linearAlgebra
85} // end of namespace dftefe
86#endif // dftefeLinearSolverImpl_h
Abstract class that implements the LinearSolver algorithm. For example, the derived classes of it,...
Definition: LinearSolverImpl.h:60
virtual LinearSolverError solve(LinearSolverFunction< ValueTypeOperator, ValueTypeOperand, memorySpace > &linearSolverFunction)=0
Function that initiates the linear solve.
virtual ~LinearSolverImpl()=default
Default Destructor.
MemorySpace
Definition: MemorySpaceType.h:37
dealii includes
Definition: AtomFieldDataSpherical.cpp:31
Definition: LinearAlgebraTypes.h:120