4 #if !defined (octave_Quad_options_h)
5 #define octave_Quad_options_h 1
18 : x_absolute_tolerance (),
19 x_relative_tolerance (),
20 x_single_precision_absolute_tolerance (),
21 x_single_precision_relative_tolerance (),
28 : x_absolute_tolerance (opt.x_absolute_tolerance),
29 x_relative_tolerance (opt.x_relative_tolerance),
30 x_single_precision_absolute_tolerance (opt.x_single_precision_absolute_tolerance),
31 x_single_precision_relative_tolerance (opt.x_single_precision_relative_tolerance),
53 x_absolute_tolerance = ::sqrt (std::numeric_limits<double>::epsilon ());
54 x_relative_tolerance = ::sqrt (std::numeric_limits<double>::epsilon ());
55 x_single_precision_absolute_tolerance = ::sqrt (std::numeric_limits<float>::epsilon ());
56 x_single_precision_relative_tolerance = ::sqrt (std::numeric_limits<float>::epsilon ());
71 void set_absolute_tolerance (
double val)
72 { x_absolute_tolerance = val; reset =
true; }
74 void set_relative_tolerance (
double val)
75 { x_relative_tolerance = val; reset =
true; }
77 void set_single_precision_absolute_tolerance (
float val)
78 { x_single_precision_absolute_tolerance = val; reset =
true; }
80 void set_single_precision_relative_tolerance (
float val)
81 { x_single_precision_relative_tolerance = val; reset =
true; }
82 double absolute_tolerance (
void)
const
83 {
return x_absolute_tolerance; }
85 double relative_tolerance (
void)
const
86 {
return x_relative_tolerance; }
88 float single_precision_absolute_tolerance (
void)
const
89 {
return x_single_precision_absolute_tolerance; }
91 float single_precision_relative_tolerance (
void)
const
92 {
return x_single_precision_relative_tolerance; }