npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0
RecurrenceQ.hh
1 #ifndef NPSTAT_RECURRENCEQ_HH_
2 #define NPSTAT_RECURRENCEQ_HH_
3 
4 //======================================================================
5 // RecurrenceQ.hh
6 //
7 // This is an internal header which is subject to change without
8 // notice. Application code should never use classes or functions
9 // declared/defined in this header directly.
10 //
11 // Author: I. Volobouev
12 //
13 // July 2023
14 //======================================================================
15 
16 #include <cassert>
17 
18 #include "npstat/nm/quad_float.hh"
19 
20 namespace npstat {
21  namespace Private {
22  struct RecurrenceQ
23  {
24  inline RecurrenceQ(const quad_float a, const quad_float b)
25  : alpha(a), beta(b)
26  {
27  assert(beta > 0.0Q);
28  sqrbeta = sqrtq(beta);
29  }
30 
31  quad_float alpha;
32  quad_float beta;
33  quad_float sqrbeta;
34  };
35  }
36 }
37 
38 #endif // NPSTAT_RECURRENCEQ_HH_
Definition: AbsArrayProjector.hh:14
Basic header to include for quadruple precision calculations.
Definition: RecurrenceQ.hh:23