26#ifndef dftefeRayleighRitzEigenSolver_h
27#define dftefeRayleighRitzEigenSolver_h
42 namespace linearAlgebra
55 template <
typename ValueTypeOperator,
56 typename ValueTypeOperand,
83 const bool useScalpack =
true,
98 std::vector<RealType> & eigenValues,
100 bool computeEigenVectors =
false);
121 std::vector<RealType> & eigenValues,
123 bool computeEigenVectors =
false);
130 const bool &useBatched =
true);
134 const std::shared_ptr<const ProcessGrid> & processGrid,
144 std::shared_ptr<MultivectorScratch<ValueType, memorySpace>>
d_scratch;
Manager class for ELPA and ScaLAPACK.
Definition: ElpaScalapackManager.h:43
Definition: LinAlgOpContext.h:52
An class template to encapsulate a MultiVector. A MultiVector is a collection of vectors belonging t...
Definition: MultiVector.h:134
Shared scratch MultiVectors (large-batch and small-batch variants) that can be reused across Chebyshe...
Definition: MultivectorScratch.h:52
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:59
std::shared_ptr< MultivectorScratch< ValueType, memorySpace > > d_scratch
Definition: RayleighRitzEigenSolver.h:144
size_type d_batchSizeSmall
Definition: RayleighRitzEigenSolver.h:141
const size_type d_eigenVecBatchSize
Definition: RayleighRitzEigenSolver.h:142
~RayleighRitzEigenSolver()=default
Default Destructor.
blasLapack::real_type< ValueType > RealType
Definition: RayleighRitzEigenSolver.h:69
const bool d_useScalapack
Definition: RayleighRitzEigenSolver.h:148
EigenSolverError solve(const OpContext &A, std::vector< RealType > &eigenValues, MultiVector< ValueType, memorySpace > &eigenVectors, bool computeEigenVectors=false)
Definition: RayleighRitzEigenSolver.t.cpp:83
void computeXTransOpX(MultiVector< ValueTypeOperand, memorySpace > &X, utils::MemoryStorage< ValueType, memorySpace > &S, const OpContext &Op, const bool &useBatched=true)
Definition: RayleighRitzEigenSolver.t.cpp:603
const bool d_useELPA
Definition: RayleighRitzEigenSolver.h:147
blasLapack::scalar_type< ValueTypeOperator, ValueTypeOperand > ValueType
define ValueType as the superior (bigger set) of the ValueTypeOperator and ValueTypeOperand (e....
Definition: RayleighRitzEigenSolver.h:68
std::shared_ptr< MultiVector< ValueType, memorySpace > > d_XoutBatch
Definition: RayleighRitzEigenSolver.h:139
std::shared_ptr< MultiVector< ValueType, memorySpace > > d_XinBatchSmall
Definition: RayleighRitzEigenSolver.h:138
const ElpaScalapackManager * d_elpaScala
Definition: RayleighRitzEigenSolver.h:146
std::shared_ptr< MultiVector< ValueType, memorySpace > > d_XoutBatchSmall
Definition: RayleighRitzEigenSolver.h:139
std::shared_ptr< MultiVector< ValueType, memorySpace > > d_XinBatch
Definition: RayleighRitzEigenSolver.h:139
Scalapack wrapper adapted from dealii library and extended implementation to complex datatype.
Definition: ScalapackWrapper.h:43
Definition: MemoryStorage.h:38
A class template to store the communication pattern (i.e., which entries/nodes to receive from which ...
Definition: MPIPatternP2P.h:197
typeInternal::real_type< ValueType > real_type
Definition: BlasLapackTypedef.h:177
typeInternal::scalar_type< ValueType1, ValueType2 > scalar_type
Definition: BlasLapackTypedef.h:183
MemorySpace
Definition: MemorySpaceType.h:37
dealii includes
Definition: AtomFieldDataSpherical.cpp:31
std::uint64_t size_type
Definition: TypeConfig.h:9
Definition: LinearAlgebraTypes.h:147