DFT-EFE
 
Loading...
Searching...
No Matches
RayleighRitzEigenSolver.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 dftefeRayleighRitzEigenSolver_h
27#define dftefeRayleighRitzEigenSolver_h
28
36#include <memory>
37
38namespace dftefe
39{
40 namespace linearAlgebra
41 {
53 template <typename ValueTypeOperator,
54 typename ValueTypeOperand,
55 utils::MemorySpace memorySpace>
57 {
58 public:
65 using ValueType =
68 using OpContext =
70
71 public:
76
82
84 solve(const OpContext & A,
86 std::vector<RealType> & eigenValues,
88 bool computeEigenVectors = false);
89
91 solve(const OpContext & A,
92 const OpContext & B,
94 std::vector<RealType> & eigenValues,
96 bool computeEigenVectors = false);
97
98 private:
99 }; // end of class RayleighRitzEigenSolver
100 } // end of namespace linearAlgebra
101} // end of namespace dftefe
103#endif // dftefeRayleighRitzEigenSolver_h
An class template to encapsulate a MultiVector. A MultiVector is a collection of vectors belonging t...
Definition: MultiVector.h:134
Abstract class to encapsulate the action of a discrete operator on vectors, matrices,...
Definition: OperatorContext.h:51
A derived class of OperatorContext to encapsulate the action of a discrete operator on vectors,...
Definition: RayleighRitzEigenSolver.h:57
~RayleighRitzEigenSolver()=default
Default Destructor.
blasLapack::real_type< ValueType > RealType
Definition: RayleighRitzEigenSolver.h:67
blasLapack::scalar_type< ValueTypeOperator, ValueTypeOperand > ValueType
define ValueType as the superior (bigger set) of the ValueTypeOperator and ValueTypeOperand (e....
Definition: RayleighRitzEigenSolver.h:66
RayleighRitzEigenSolver()
Constructor.
Definition: RayleighRitzEigenSolver.t.cpp:40
EigenSolverError solve(const OpContext &A, MultiVector< ValueTypeOperand, memorySpace > &X, std::vector< RealType > &eigenValues, MultiVector< ValueType, memorySpace > &eigenVectors, bool computeEigenVectors=false)
Definition: RayleighRitzEigenSolver.t.cpp:48
blas::scalar_type< ValueType1, ValueType2 > scalar_type
Definition: BlasLapackTypedef.h:70
blas::real_type< ValueType > real_type
Definition: BlasLapackTypedef.h:64
MemorySpace
Definition: MemorySpaceType.h:37
dealii includes
Definition: AtomFieldDataSpherical.cpp:31
Definition: LinearAlgebraTypes.h:127