Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Functions | Variables
JMATH Namespace Reference

Auxiliary classes and methods for mathematical operations. More...

Classes

struct  JCalculator
 Auxiliary class for arithmetic operations on objects. More...
 
struct  JGauss_t
 Gauss model. More...
 
struct  JGauss
 Gauss function object. More...
 
struct  JLimits
 Auxiliary class for minimum and maximum values for any class. More...
 
struct  JLimits< T, true >
 Template spacialisation of JMATH::JLimits for numerical values. More...
 
struct  JLimits< T, false >
 Template spacialisation of JMATH::JRandom for other data types. More...
 
struct  JMath
 Auxiliary base class for aritmetic operations of derived class types. More...
 
struct  JMath< T, JNullType >
 Template base class for data structures with arithmetic capabilities. More...
 
class  JMatrix1D
 1 x 1 matrix More...
 
class  JMatrix1S
 1 x 1 symmetric matrix More...
 
class  JMatrix2D
 2 x 2 matrix More...
 
class  JMatrix2S
 2 x 2 symmetric matrix More...
 
class  JMatrix3D
 3 x 3 matrix More...
 
class  JMatrix3S
 3 x 3 symmetric matrix More...
 
class  JMatrix4D
 4 x 4 matrix More...
 
class  JMatrix4S
 4 x 4 symmetric matrix More...
 
class  JMatrix5D
 5 x 5 matrix More...
 
class  JMatrix5S
 5 x 5 symmetric matrix More...
 
struct  JMatrixND_t
 Basic NxN matrix. More...
 
struct  JMatrixND
 NxN matrix. More...
 
struct  JMatrixNS
 N x N symmetric matrix. More...
 
struct  JModel_t
 Fit model. More...
 
struct  JNumber
 Simple wrapper around template data type to ensure that zero is the default value. More...
 
struct  JPolynome_t
 Polynome model. More...
 
struct  JPolynome
 Polynome function object. More...
 
class  JPower
 Power law function object. More...
 
struct  JRandom
 Template definition of random value generator. More...
 
struct  JRandom< T, true >
 Template spacialisation of JMATH::JRandom for numerical values. More...
 
struct  JRandom< T, false >
 Template spacialisation of JMATH::JRandom for non-numerical data types. More...
 
class  JTrigonometric
 Trigonometric function object for sin and cos. More...
 
struct  JVectorND
 Nx1 matrix. More...
 
struct  JZero
 Auxiliary class to assign zero value. More...
 

Functions

template<class T >
const JCalculator< T, 1 > & operator* (const T &first, const T &second)
 Product evaluation of objects. More...
 
template<class T , int N>
const JCalculator< T, N+1 > & operator* (const T &first, const JCalculator< T, N > &second)
 Recursive product evaluation of objects. More...
 
template<class T , int N>
const JCalculator< T, N+1 > & operator* (const JCalculator< T, N > &first, const T &second)
 Recursive product evaluation of objects. More...
 
double gauss (const double x, const double sigma)
 Gauss function (normalised to 1 at x = 0). More...
 
double gauss (const double x, const double x0, const double sigma)
 Gauss function (normalised to 1 at x = x0). More...
 
double Gauss (const double x, const double sigma)
 Normalised Gauss function. More...
 
double Gauss (const double x, const double x0, const double sigma)
 Normalised Gauss function. More...
 
double Gamma (const double a, const double x)
 Incomplete gamma function. More...
 
void randomize (JMatrix1S *p)
 Randomize matrix. More...
 
void randomize (JMatrix2S *p)
 Randomize matrix. More...
 
void randomize (JMatrix3S *p)
 Randomize matrix. More...
 
void randomize (JMatrix4S *p)
 Randomize matrix. More...
 
void randomize (JMatrix5S *p)
 Randomize matrix. More...
 
long long int factorial (const long long int n)
 Determine factorial. More...
 
long long int factorial (const long long int n, const long long int m)
 Determine combinatorics. More...
 
template<class JFirst_t , class JSecond_t >
bool equals (const JFirst_t &first, const JSecond_t &second, const double precision=std::numeric_limits< double >::min())
 Check equality. More...
 
template<class JFirst_t , class JSecond_t >
double getDistanceSquared (const JFirst_t &first, const JSecond_t &second)
 Get square of distance between objects. More...
 
template<class JFirst_t , class JSecond_t >
double getDistance (const JFirst_t &first, const JSecond_t &second)
 Get distance between objects. More...
 
template<class JFirst_t , class JSecond_t >
double getDot (const JFirst_t &first, const JSecond_t &second)
 Get dot product of objects. More...
 
template<class JFirst_t , class JSecond_t >
double getAngle (const JFirst_t &first, const JSecond_t &second)
 Get space angle between objects. More...
 
template<class JFirst_t , class JSecond_t >
double getPerpDot (const JFirst_t &first, const JSecond_t &second)
 Get perpendicular dot product of objects. More...
 
template<class T >
T interpolate (const T &first, const T &second, const double alpha)
 Interpolation between objects. More...
 
template<class T >
std::vector< Tconvolve (const std::vector< T > &in, const std::vector< T > &ker)
 Convolves a vector (in) with another vector (ker). More...
 
template<class T >
T getRandom ()
 Get random value. More...
 
template<class T >
T getRandom (const T min, const T max)
 Get uniformly distributed random value between given limits. More...
 
template<class T >
T getRandom (const T min, const T max, const T precision)
 Get uniformly distributed random value between given limits. More...
 
template<>
double getRandom (const double min, const double max, const double precision)
 Template specialisation for data type double. More...
 
template<class T >
T getZero ()
 Get zero value for a given data type. More...
 
template<>
bool getZero< bool > ()
 Get zero value for bool. More...
 
template<>
float getZero< float > ()
 Get zero value for float. More...
 
template<>
double getZero< double > ()
 Get zero value for double. More...
 
template<>
long double getZero< long double > ()
 Get zero value for long double. More...
 

Variables

static const JZero zero
 Function object to assign zero value. More...
 

Detailed Description

Auxiliary classes and methods for mathematical operations.

Author
mdejong

Function Documentation

template<class T >
const JCalculator<T, 1>& JMATH::operator* ( const T first,
const T second 
)
inline

Product evaluation of objects.

Multiply objects.

Parameters
firstfirst object
secondsecond object
Returns
calculator

Definition at line 53 of file JCalculator.hh.

54  {
56 
58  }
then echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first
Auxiliary class for arithmetic operations on objects.
Definition: JCalculator.hh:18
template<class T , int N>
const JCalculator<T, N+1>& JMATH::operator* ( const T first,
const JCalculator< T, N > &  second 
)
inline

Recursive product evaluation of objects.

Parameters
firstfirst object
secondsecond object
Returns
calculator

Definition at line 69 of file JCalculator.hh.

70  {
72 
74  }
then echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first
Auxiliary class for arithmetic operations on objects.
Definition: JCalculator.hh:18
template<class T , int N>
const JCalculator<T, N+1>& JMATH::operator* ( const JCalculator< T, N > &  first,
const T second 
)
inline

Recursive product evaluation of objects.

Parameters
firstfirst object
secondsecond object
Returns
calculator

Definition at line 85 of file JCalculator.hh.

86  {
87  JCalculator<T, N+1>::calculator.mul(first, second);
88 
90  }
Auxiliary class for arithmetic operations on objects.
Definition: JCalculator.hh:18
double JMATH::gauss ( const double  x,
const double  sigma 
)
inline

Gauss function (normalised to 1 at x = 0).

Parameters
xx
sigmasigma
Returns
function value

Definition at line 26 of file JMath/JMathSupportkit.hh.

27  {
28  const double u = x / sigma;
29 
30  if (fabs(u) < 10.0)
31  return exp(-0.5*u*u);
32  else
33  return 0.0;
34  }
double u[N+1]
Definition: JPolint.hh:706
then set_variable FORMULA *[0] exp(-0.5 *(x-[1])*(x-[1])/([2]*[2]))" set_variable OUTPUT_FILE histogram.root JHistogram1D -o $WORKDIR/$OUTPUT_FILE -F "$FORMULA" -
double JMATH::gauss ( const double  x,
const double  x0,
const double  sigma 
)
inline

Gauss function (normalised to 1 at x = x0).

Parameters
xx
x0central value
sigmasigma
Returns
function value

Definition at line 45 of file JMath/JMathSupportkit.hh.

46  {
47  return gauss(x - x0, sigma);
48  }
double gauss(const double x, const double sigma)
Gauss function (normalised to 1 at x = 0).
double JMATH::Gauss ( const double  x,
const double  sigma 
)
inline

Normalised Gauss function.

Parameters
xx
sigmasigma
Returns
function value

Definition at line 58 of file JMath/JMathSupportkit.hh.

59  {
60  return gauss(x, sigma) / sqrt(2.0*JTOOLS::PI) / sigma;
61  }
static const double PI
Constants.
Definition: JConstants.hh:20
double gauss(const double x, const double sigma)
Gauss function (normalised to 1 at x = 0).
double JMATH::Gauss ( const double  x,
const double  x0,
const double  sigma 
)
inline

Normalised Gauss function.

Parameters
xx
x0central value
sigmasigma
Returns
function value

Definition at line 72 of file JMath/JMathSupportkit.hh.

73  {
74  return Gauss(x - x0, sigma);
75  }
double Gauss(const double x, const double sigma)
Normalised Gauss function.
double JMATH::Gamma ( const double  a,
const double  x 
)
inline

Incomplete gamma function.

Parameters
aa
xx
Returns
function value

Definition at line 85 of file JMath/JMathSupportkit.hh.

86  {
87  using namespace std;
88 
89  const int max = 100;
90 
91  if (x < 0.0) { THROW(JValueOutOfRange, "x < 0 " << x); }
92  if (a <= 0.0) { THROW(JValueOutOfRange, "a <= 0 " << a); }
93 
94  const double gln = lgamma(a);
95 
96  if (x < a + 1.0) {
97 
98  if (x <= 0.0) {
99  THROW(JValueOutOfRange, "x <= 0 " << x);
100  }
101 
102  double ap = a;
103  double sum = 1.0 /a;
104  double del = sum;
105 
106  for (int i = 1; i != max; ++i) {
107 
108  ap += 1.0;
109  del *= x/ap;
110  sum += del;
111 
112  if (fabs(del) < fabs(sum)*numeric_limits<double>::epsilon()) {
113  return sum*exp(-x + a*log(x) - gln);
114  }
115  }
116 
117  } else {
118 
119  double b = x + 1.0 - a;
120  double c = numeric_limits<double>::epsilon() / numeric_limits<double>::min();
121  double d = 1.0 / b;
122  double h = d;
123 
124  for (int i = 1; i != max; ++i) {
125 
126  const double an = -i * (i-a);
127 
128  b += 2.0;
129  d = an*d + b;
130 
131  if (fabs(d) < numeric_limits<double>::min()) {
132  d = numeric_limits<double>::min();
133  }
134 
135  c = b + an/c;
136 
137  if (fabs(c) < numeric_limits<double>::min()) {
138  c = numeric_limits<double>::min();
139  }
140 
141  d = 1.0/d;
142 
143  const double del = d*c;
144 
145  h *= del;
146 
147  if (fabs(del - 1.0) < numeric_limits<double>::epsilon()) {
148  return 1.0 - exp(-x + a*log(x) - gln) * h;
149  }
150  }
151 
152  THROW(JValueOutOfRange, "a " << a);
153  }
154 
155  return 0.0;
156  }
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Definition: JException.hh:670
fi JEventTimesliceWriter a
then print_variable DETECTOR INPUT_FILE INTERMEDIATE_FILE check_input_file $DETECTOR $INPUT_FILE check_output_file $INTERMEDIATE_FILE $OUTPUT_FILE JMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
Definition: JPath.sh:52
then set_variable FORMULA *[0] exp(-0.5 *(x-[1])*(x-[1])/([2]*[2]))" set_variable OUTPUT_FILE histogram.root JHistogram1D -o $WORKDIR/$OUTPUT_FILE -F "$FORMULA" -
void JMATH::randomize ( JMatrix1S p)
inline

Randomize matrix.

Parameters
ppointer to valid object

Definition at line 29 of file JMathTestkit.hh.

30  {
31  new (p) JMatrix1S(getRandom<double>(-1.0, +1.0));
32  }
1 x 1 symmetric matrix
Definition: JMatrix1S.hh:26
void JMATH::randomize ( JMatrix2S p)
inline

Randomize matrix.

Parameters
ppointer to valid object

Definition at line 40 of file JMathTestkit.hh.

41  {
42  new (p) JMatrix2S(getRandom<double>(-1.0,+1.0),
43  getRandom<double>(-1.0,+1.0), getRandom<double>(-1.0,+1.0));
44 
45  p->a01 = p->a10;
46  }
2 x 2 symmetric matrix
Definition: JMatrix2S.hh:26
void JMATH::randomize ( JMatrix3S p)
inline

Randomize matrix.

Parameters
ppointer to valid object

Definition at line 54 of file JMathTestkit.hh.

55  {
56  new (p) JMatrix3S(getRandom<double>(-1.0,+1.0),
57  getRandom<double>(-1.0,+1.0), getRandom<double>(-1.0,+1.0),
58  getRandom<double>(-1.0,+1.0), getRandom<double>(-1.0,+1.0), getRandom<double>(-1.0,+1.0));
59 
60  p->a01 = p->a10;
61  p->a02 = p->a20;
62  p->a12 = p->a21;
63  }
3 x 3 symmetric matrix
Definition: JMatrix3S.hh:26
void JMATH::randomize ( JMatrix4S p)
inline

Randomize matrix.

Parameters
ppointer to valid object

Definition at line 71 of file JMathTestkit.hh.

72  {
73  new (p) JMatrix4S(getRandom<double>(-1.0,+1.0),
74  getRandom<double>(-1.0,+1.0), getRandom<double>(-1.0,+1.0),
75  getRandom<double>(-1.0,+1.0), getRandom<double>(-1.0,+1.0), getRandom<double>(-1.0,+1.0),
76  getRandom<double>(-1.0,+1.0), getRandom<double>(-1.0,+1.0), getRandom<double>(-1.0,+1.0), getRandom<double>(-1.0,+1.0));
77 
78  p->a01 = p->a10;
79  p->a02 = p->a20;
80  p->a03 = p->a30;
81  p->a12 = p->a21;
82  p->a13 = p->a31;
83  p->a23 = p->a32;
84  }
4 x 4 symmetric matrix
Definition: JMatrix4S.hh:26
void JMATH::randomize ( JMatrix5S p)
inline

Randomize matrix.

Parameters
ppointer to valid object

Definition at line 92 of file JMathTestkit.hh.

93  {
94  new (p) JMatrix5S(getRandom<double>(-1.0,+1.0),
95  getRandom<double>(-1.0,+1.0), getRandom<double>(-1.0,+1.0),
96  getRandom<double>(-1.0,+1.0), getRandom<double>(-1.0,+1.0), getRandom<double>(-1.0,+1.0),
97  getRandom<double>(-1.0,+1.0), getRandom<double>(-1.0,+1.0), getRandom<double>(-1.0,+1.0), getRandom<double>(-1.0,+1.0),
98  getRandom<double>(-1.0,+1.0), getRandom<double>(-1.0,+1.0), getRandom<double>(-1.0,+1.0), getRandom<double>(-1.0,+1.0), getRandom<double>(-1.0,+1.0));
99 
100  p->a01 = p->a10;
101  p->a02 = p->a20;
102  p->a03 = p->a30;
103  p->a04 = p->a40;
104  p->a12 = p->a21;
105  p->a13 = p->a31;
106  p->a14 = p->a41;
107  p->a23 = p->a32;
108  p->a24 = p->a42;
109  p->a34 = p->a43;
110  }
5 x 5 symmetric matrix
Definition: JMatrix5S.hh:26
long long int JMATH::factorial ( const long long int  n)
inline

Determine factorial.

Parameters
nnumber
Returns
factorial (= n!)

Definition at line 41 of file JMathToolkit.hh.

42  {
43  if (n < 0) {
44  THROW(JValueOutOfRange, "JMATH::factorial(): invalid argument " << n);
45  }
46 
47  if (n != 1)
48  return n * factorial(n - 1);
49  else
50  return 1;
51  }
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Definition: JException.hh:670
long long int factorial(const long long int n)
Determine factorial.
Definition: JMathToolkit.hh:41
alias put_queue eval echo n
Definition: qlib.csh:19
long long int JMATH::factorial ( const long long int  n,
const long long int  m 
)
inline

Determine combinatorics.

Parameters
nnumber
mnumber
Returns
n!/(m!*(n-m)!)

Definition at line 61 of file JMathToolkit.hh.

62  {
63  if (n < 0 || m < 0 || n < m) {
64  THROW(JValueOutOfRange, "JMATH::factorial(): invalid argument " << n << ' ' << m);
65  }
66 
67  if (n == m)
68  return 1;
69  else if (m == 0)
70  return 1;
71  else
72  return factorial(n - 1, m - 1) + factorial(n - 1, m);
73  }
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Definition: JException.hh:670
long long int factorial(const long long int n)
Determine factorial.
Definition: JMathToolkit.hh:41
alias put_queue eval echo n
Definition: qlib.csh:19
template<class JFirst_t , class JSecond_t >
bool JMATH::equals ( const JFirst_t &  first,
const JSecond_t &  second,
const double  precision = std::numeric_limits<double>::min() 
)
inline

Check equality.

Parameters
firstfirst object
secondsecond object
precisionprecision
Returns
true if two objects are equals; else false

Definition at line 85 of file JMathToolkit.hh.

88  {
89  return first.equals(second, precision);
90  }
then echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first
template<class JFirst_t , class JSecond_t >
double JMATH::getDistanceSquared ( const JFirst_t &  first,
const JSecond_t &  second 
)
inline

Get square of distance between objects.

Parameters
firstfirst object
secondsecond object
Returns
square of distance

Definition at line 101 of file JMathToolkit.hh.

103  {
104  return first.getDistanceSquared(second);
105  }
then echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first
template<class JFirst_t , class JSecond_t >
double JMATH::getDistance ( const JFirst_t &  first,
const JSecond_t &  second 
)
inline

Get distance between objects.

Parameters
firstfirst object
secondsecond object
Returns
distance

Definition at line 116 of file JMathToolkit.hh.

118  {
119  return first.getDistance(second);
120  }
then echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first
template<class JFirst_t , class JSecond_t >
double JMATH::getDot ( const JFirst_t &  first,
const JSecond_t &  second 
)
inline

Get dot product of objects.

Parameters
firstfirst object
secondsecond object
Returns
dot product

Definition at line 131 of file JMathToolkit.hh.

133  {
134  return first.getDot(second);
135  }
then echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first
template<class JFirst_t , class JSecond_t >
double JMATH::getAngle ( const JFirst_t &  first,
const JSecond_t &  second 
)
inline

Get space angle between objects.

Parameters
firstfirst object
secondsecond object
Returns
angle [deg]

Definition at line 146 of file JMathToolkit.hh.

148  {
149  const double dot = getDot(first,second);
150 
151  if (dot >= +1.0)
152  return 0.0;
153  else if (dot <= -1.0)
154  return 180.0;
155  else
156  return acos(dot) * 180.0 / acos(-1.0);
157  }
double getDot(const JNeutrinoDirection &first, const JNeutrinoDirection &second)
Dot product.
Definition: JAstronomy.hh:409
then echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first
template<class JFirst_t , class JSecond_t >
double JMATH::getPerpDot ( const JFirst_t &  first,
const JSecond_t &  second 
)
inline

Get perpendicular dot product of objects.

Parameters
firstfirst object
secondsecond object
Returns
perpendicular dot product

Definition at line 168 of file JMathToolkit.hh.

170  {
171  return first.getPerpDot(second);
172  }
then echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first
template<class T >
T JMATH::interpolate ( const T first,
const T second,
const double  alpha 
)
inline

Interpolation between objects.

The result is equal to result = (1 - alpha) x (first) + (alpha) x (second).

Parameters
firstfirst object
secondsecond object
alphainterpolation factor (normally between 0 and 1)
Returns
result

Definition at line 185 of file JMathToolkit.hh.

188  {
189  return T(first).interpolate(second, alpha);
190  }
then echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first
do set_variable OUTPUT_DIRECTORY $WORKDIR T
template<class T >
std::vector<T> JMATH::convolve ( const std::vector< T > &  in,
const std::vector< T > &  ker 
)
inline

Convolves a vector (in) with another vector (ker).

Parameters
ininput vector (data)
kerconvolution kernel
Returns
convolution of in with ker

Definition at line 200 of file JMathToolkit.hh.

200  {
201 
202  const int k = ker.size();
203  const int n = in.size() - k + 1;
204 
205  std::vector<T> out(n, 0);
206 
207  for (int i = 0; i < n; i++) {
208  for (int j = 0; j < k; j++) {
209  out[i] += in[i + j] * ker[k - j - 1];
210  }
211  }
212 
213  return out;
214 
215  }
*fatal Wrong number of arguments esac JCookie sh JRuns D $DETECTOR d sort n k
Definition: JRunrange.sh:16
alias put_queue eval echo n
Definition: qlib.csh:19
int j
Definition: JPolint.hh:634
template<class T >
T JMATH::getRandom ( )
inline

Get random value.

Returns
random value

Definition at line 113 of file JRandom.hh.

114  {
115  return JRandom<T>::getRandom();
116  }
T getRandom()
Get random value.
Definition: JRandom.hh:113
template<class T >
T JMATH::getRandom ( const T  min,
const T  max 
)
inline

Get uniformly distributed random value between given limits.

Parameters
minminimal value
maxmaximal value
Returns
random value

Definition at line 127 of file JRandom.hh.

129  {
130  return JRandom<T, true>::getRandom(min, max);
131  }
T getRandom()
Get random value.
Definition: JRandom.hh:113
template<class T >
T JMATH::getRandom ( const T  min,
const T  max,
const T  precision 
)
inline

Get uniformly distributed random value between given limits.

Parameters
minminimal value
maxmaximal value
precisionprecision
Returns
random value

Definition at line 143 of file JRandom.hh.

146  {
147  return JRandom<T, true>::getRandom(min, max);
148  }
T getRandom()
Get random value.
Definition: JRandom.hh:113
template<>
double JMATH::getRandom ( const double  min,
const double  max,
const double  precision 
)
inline

Template specialisation for data type double.

Definition at line 155 of file JRandom.hh.

158  {
159  double value = getRandom<double>(min, max);
160 
161  if (precision != 0.0) {
162 
163  const long long int ip = (long long int) (1.0 / precision);
164 
165  value = ((double) ((long long int) (value * ip))) / ip;
166  }
167 
168  return value;
169  }
template<class T >
T JMATH::getZero ( )
inline

Get zero value for a given data type.

The default implementation of this method returns an object which is created with the default constructor. This method should be specialised if this value does not correspond to the equivalent of a zero result.

Returns
zero

Definition at line 26 of file JZero.hh.

27  {
28  return T();
29  }
do set_variable OUTPUT_DIRECTORY $WORKDIR T
template<>
bool JMATH::getZero< bool > ( )
inline

Get zero value for bool.

Returns
false

Definition at line 37 of file JZero.hh.

38  {
39  return false;
40  }
template<>
float JMATH::getZero< float > ( )
inline

Get zero value for float.

Returns
zero

Definition at line 48 of file JZero.hh.

49  {
50  return float(0.0);
51  }
template<>
double JMATH::getZero< double > ( )
inline

Get zero value for double.

Returns
zero

Definition at line 60 of file JZero.hh.

61  {
62  return double(0.0);
63  }
template<>
long double JMATH::getZero< long double > ( )
inline

Get zero value for long double.

Returns
zero

Definition at line 72 of file JZero.hh.

73  {
74  return (long double)(0.0);
75  }

Variable Documentation

const JZero JMATH::zero
static

Function object to assign zero value.

Definition at line 105 of file JZero.hh.