CHROMA
read_rat_approx.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! @file
3  * @brief Remez-type rational approximation
4  */
5 
6 #ifndef __read_rat_approx_h__
7 #define __read_rat_approx_h__
8 
10 
11 namespace Chroma
12 {
13 
14  //! Name and registration
15  /*! @ingroup monomial */
16  namespace ReadRatApproxEnv
17  {
18  bool registerAll();
19 
20  //! Params for Remez type rational approximation
21  /*! @ingroup monomial */
22  struct Params
23  {
24  Params() {}
25  Params(XMLReader& in, const std::string& path);
26  void writeXML(XMLWriter& in, const std::string& path) const;
29  };
30 
31  }
32 
33  //! Remez type of rational approximations
34  /*! @ingroup monomial */
36  {
37  public:
38  //! Full constructor
40 
41  //! Destructor
43 
44  //! Produce the partial-fraction-expansion (PFE) and its inverse (IPFE)
45  void operator()(RemezCoeff_t& pfe, RemezCoeff_t& ipfe) const;
46 
47  private:
48  ReadRatApproxEnv::Params params; /*!< remez params */
49  };
50 
51 
52  //! Reader
53  /*! @ingroup monomial */
54  void read(XMLReader& xml, const std::string& path, ReadRatApproxEnv::Params& param);
55 
56  //! Reader
57  /*! @ingroup monomial */
58  void write(XMLWriter& xml, const std::string& path, const ReadRatApproxEnv::Params& params);
59 
60 } //end namespace chroma
61 
62 #endif
Base class for rational approximations.
Definition: rat_approx.h:19
Remez type of rational approximations.
ReadRatApprox(const ReadRatApproxEnv::Params &p)
Full constructor.
~ReadRatApprox()
Destructor.
ReadRatApproxEnv::Params params
void operator()(RemezCoeff_t &pfe, RemezCoeff_t &ipfe) const
Produce the partial-fraction-expansion (PFE) and its inverse (IPFE)
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.
Params params
bool registerAll()
Register all the factories.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
static QDP_ColorVector * in
::std::string string
Definition: gtest.h:1979
Base class for rational approximations.
Params for Remez type rational approximation.
void writeXML(XMLWriter &in, const std::string &path) const
Convenient structure to package Remez coeffs.
Definition: remez_coeff.h:19