npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0
OrthoPolyMethod.hh
Go to the documentation of this file.
1 #ifndef NPSTAT_ORTHOPOLYMETHOD_HH_
2 #define NPSTAT_ORTHOPOLYMETHOD_HH_
3 
4 /*!
5 // \file OrthoPolyMethod.hh
6 //
7 // \brief Enumeration of methods used to create orthogonal polynomials
8 // with discrete weights
9 //
10 // Author: I. Volobouev
11 //
12 // May 2017
13 */
14 
15 #include <string>
16 
17 namespace npstat {
18  /** Method to generate the recurrence coefficients */
20  {
21  OPOLY_STIELTJES = 0, // Discrete Stieltjes algorithm
22 
23  OPOLY_LANCZOS // Numerically stable version of Lanczos
24  // algorithm (RKPW algorithm from W.B. Gragg
25  // and W.J. Harrod, "The numerically stable
26  // reconstruction of Jacobi matrices from
27  // spectral data", Numer. Math. 44, 317 (1984))
28  };
29 
30  /** Enums corresponding to method names */
31  OrthoPolyMethod parseOrthoPolyMethod(const char* methodName);
32 
33  /** Method names corresponding to enums */
35 
36  /** All valid method names for use in error messages, etc */
38 }
39 
40 #endif // NPSTAT_ORTHOPOLYMETHOD_HH_
Definition: AbsArrayProjector.hh:14
OrthoPolyMethod parseOrthoPolyMethod(const char *methodName)
std::string validOrthoPolyMethodNames()
const char * orthoPolyMethodName(OrthoPolyMethod m)
OrthoPolyMethod
Definition: OrthoPolyMethod.hh:20