QMCPACK
HamiltonianRef.h
Go to the documentation of this file.
1 //////////////////////////////////////////////////////////////////////////////////////
2 // This file is distributed under the University of Illinois/NCSA Open Source License.
3 // See LICENSE file in top directory for details.
4 //
5 // Copyright (c) 2021 QMCPACK developers.
6 //
7 // File developed by: Ye Luo, yeluo@anl.gov, Argonne National Laboratory
8 //
9 // File created by: Ye Luo, yeluo@anl.gov, Argonne National Laboratory
10 //////////////////////////////////////////////////////////////////////////////////////
11 
12 
13 #ifndef QMCPLUSPLUS_HAMILTONIANREF_H
14 #define QMCPLUSPLUS_HAMILTONIANREF_H
15 
16 #include <OperatorBase.h>
17 
18 namespace qmcplusplus
19 {
20 /* Helper class to handle references to H components.
21  */
23 {
24 public:
29 
31 
32  /// the same evaluateValueAndDerivatives as QMCHamiltonian
34  const opt_variables_type& optvars,
35  Vector<ValueType>& dlogpsi,
36  Vector<ValueType>& dhpsioverpsi);
37 
38  /// the same evaluate as QMCHamiltonian
40 
41  int size() const { return Hrefs_.size(); }
42 
43 private:
44  /// collected references
46 };
47 
48 } // namespace qmcplusplus
49 
50 #endif
FullPrecRealType evaluate(ParticleSet &P)
the same evaluate as QMCHamiltonian
helper functions for EinsplineSetBuilder
Definition: Configuration.h:43
QTBase::RealType RealType
Definition: Configuration.h:58
Declaration of OperatorBase.
Specialized paritlce class for atomistic simulations.
Definition: ParticleSet.h:55
QTBase::ValueType ValueType
Definition: Configuration.h:60
OperatorBase::ValueType ValueType
QMCTraits::FullPrecRealType FullPrecRealType
class to handle a set of variables that can be modified during optimizations
Definition: VariableSet.h:49
OperatorBase::RealType RealType
std::vector< std::reference_wrapper< T > > RefVector
ParticleSet::Walker_t Walker_t
typedef for the walker
Definition: OperatorBase.h:78
FullPrecRealType evaluateValueAndDerivatives(ParticleSet &P, const opt_variables_type &optvars, Vector< ValueType > &dlogpsi, Vector< ValueType > &dhpsioverpsi)
the same evaluateValueAndDerivatives as QMCHamiltonian
QTFull::RealType FullPrecRealType
Definition: Configuration.h:66
HamiltonianRef(const RefVector< OperatorBase >)
A container class to represent a walker.
Definition: Walker.h:49
const RefVector< OperatorBase > Hrefs_
collected references