Spectra
GenEigsSolver.h
1 // Copyright (C) 2016-2018 Yixuan Qiu <yixuan.qiu@cos.name>
2 //
3 // This Source Code Form is subject to the terms of the Mozilla
4 // Public License v. 2.0. If a copy of the MPL was not distributed
5 // with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
6 
7 #ifndef GEN_EIGS_SOLVER_H
8 #define GEN_EIGS_SOLVER_H
9 
10 #include <Eigen/Core>
11 
12 #include "GenEigsBase.h"
13 #include "Util/SelectionRule.h"
14 #include "MatOp/DenseGenMatProd.h"
15 
16 namespace Spectra {
17 
18 
126 template < typename Scalar = double,
127  int SelectionRule = LARGEST_MAGN,
128  typename OpType = DenseGenMatProd<double> >
129 class GenEigsSolver: public GenEigsBase<Scalar, SelectionRule, OpType, IdentityBOp>
130 {
131 public:
149  GenEigsSolver(OpType* op, int nev, int ncv) :
150  GenEigsBase<Scalar, SelectionRule, OpType, IdentityBOp>(op, NULL, nev, ncv)
151  {}
152 };
153 
154 
155 } // namespace Spectra
156 
157 #endif // GEN_EIGS_SOLVER_H
GenEigsSolver(OpType *op, int nev, int ncv)