4 #if ! defined (octave_Quad_options_h)
5 #define octave_Quad_options_h 1
19 : m_absolute_tolerance (),
20 m_relative_tolerance (),
21 m_single_precision_absolute_tolerance (),
22 m_single_precision_relative_tolerance (),
29 : m_absolute_tolerance (opt.m_absolute_tolerance),
30 m_relative_tolerance (opt.m_relative_tolerance),
31 m_single_precision_absolute_tolerance (opt.m_single_precision_absolute_tolerance),
32 m_single_precision_relative_tolerance (opt.m_single_precision_relative_tolerance),
40 m_absolute_tolerance = opt.m_absolute_tolerance;
41 m_relative_tolerance = opt.m_relative_tolerance;
42 m_single_precision_absolute_tolerance = opt.m_single_precision_absolute_tolerance;
43 m_single_precision_relative_tolerance = opt.m_single_precision_relative_tolerance;
54 m_absolute_tolerance = ::sqrt (std::numeric_limits<double>::epsilon ());
55 m_relative_tolerance = ::sqrt (std::numeric_limits<double>::epsilon ());
56 m_single_precision_absolute_tolerance = ::sqrt (std::numeric_limits<float>::epsilon ());
57 m_single_precision_relative_tolerance = ::sqrt (std::numeric_limits<float>::epsilon ());
63 m_absolute_tolerance = opt.m_absolute_tolerance;
64 m_relative_tolerance = opt.m_relative_tolerance;
65 m_single_precision_absolute_tolerance = opt.m_single_precision_absolute_tolerance;
66 m_single_precision_relative_tolerance = opt.m_single_precision_relative_tolerance;
73 { m_absolute_tolerance = val; m_reset =
true; }
76 { m_relative_tolerance = val; m_reset =
true; }
79 { m_single_precision_absolute_tolerance = val; m_reset =
true; }
82 { m_single_precision_relative_tolerance = val; m_reset =
true; }
84 {
return m_absolute_tolerance; }
87 {
return m_relative_tolerance; }
90 {
return m_single_precision_absolute_tolerance; }
93 {
return m_single_precision_relative_tolerance; }
97 double m_absolute_tolerance;
98 double m_relative_tolerance;
99 float m_single_precision_absolute_tolerance;
100 float m_single_precision_relative_tolerance;
void set_single_precision_relative_tolerance(float val)
float single_precision_relative_tolerance() const
void set_default_options()
void set_options(const Quad_options &opt)
void set_single_precision_absolute_tolerance(float val)
Quad_options(const Quad_options &opt)
double absolute_tolerance() const
void set_absolute_tolerance(double val)
float single_precision_absolute_tolerance() const
double relative_tolerance() const
void set_relative_tolerance(double val)