CHROMA
subset_ev_pair.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Holds of vectors and eigenvalues
4  */
5 
6 #ifndef __EV_PAIR_H__
7 #define __EV_PAIR_H__
8 
9 
10 #include "chromabase.h"
11 
12 namespace Chroma
13 {
14 
15  //! Weights for subset of vectors
16  /*! \ingroup ferm */
18  {
19  multi1d<Real> weights;
20  };
21 
22  //! A Pair type.
23  template<typename T>
24  struct EVPair {
27  };
28 
29  template<typename T>
30  void read(BinaryReader& bin_in, EVPair<T>& evpair)
31  {
32  read(bin_in, evpair.eigenVector);
33  read(bin_in, evpair.eigenValue.weights);
34  }
35 
36  template<typename T>
37  void write(BinaryWriter& bin_out, const EVPair<T>& evpair)
38  {
39  write(bin_out, evpair.eigenVector);
40  write(bin_out, evpair.eigenValue.weights);
41  }
42 
43 }
44 
45 
46 #endif
47 
Primary include file for CHROMA library code.
void read(XMLReader &xml, const std::string &path, AsqtadFermActParams &param)
Read parameters.
void write(XMLWriter &xml, const std::string &path, const AsqtadFermActParams &param)
Writer parameters.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
LinOpSysSolverMGProtoClover::T T
A Pair type.
SubsetVectorWeight_t eigenValue
Weights for subset of vectors.