4 #if !defined (octave_DASRT_options_h)
5 #define octave_DASRT_options_h 1
19 : x_absolute_tolerance (),
20 x_relative_tolerance (),
21 x_initial_step_size (),
23 x_maximum_step_size (),
31 : x_absolute_tolerance (opt.x_absolute_tolerance),
32 x_relative_tolerance (opt.x_relative_tolerance),
33 x_initial_step_size (opt.x_initial_step_size),
34 x_maximum_order (opt.x_maximum_order),
35 x_maximum_step_size (opt.x_maximum_step_size),
36 x_step_limit (opt.x_step_limit),
60 x_absolute_tolerance.resize (
dim_vector (1, 1));
61 x_absolute_tolerance(0) = ::sqrt (std::numeric_limits<double>::epsilon ());
62 x_relative_tolerance.resize (
dim_vector (1, 1));
63 x_relative_tolerance(0) = ::sqrt (std::numeric_limits<double>::epsilon ());
64 x_initial_step_size = -1.0;
66 x_maximum_step_size = -1.0;
84 void set_absolute_tolerance (
double val)
86 x_absolute_tolerance.resize (
dim_vector (1, 1));
87 x_absolute_tolerance(0) = (val > 0.0) ? val : ::sqrt (std::numeric_limits<double>::epsilon ());
92 { x_absolute_tolerance = val; reset =
true; }
94 void set_relative_tolerance (
double val)
97 x_relative_tolerance(0) = (val > 0.0) ? val : ::sqrt (std::numeric_limits<double>::epsilon ());
102 { x_relative_tolerance = val; reset =
true; }
104 void set_initial_step_size (
double val)
105 { x_initial_step_size = (val >= 0.0) ? val : -1.0; reset =
true; }
108 { x_maximum_order = val; reset =
true; }
110 void set_maximum_step_size (
double val)
111 { x_maximum_step_size = (val >= 0.0) ? val : -1.0; reset =
true; }
114 { x_step_limit = (val >= 0) ? val : -1; reset =
true; }
116 {
return x_absolute_tolerance; }
119 {
return x_relative_tolerance; }
121 double initial_step_size (
void)
const
122 {
return x_initial_step_size; }
125 {
return x_maximum_order; }
127 double maximum_step_size (
void)
const
128 {
return x_maximum_step_size; }
131 {
return x_step_limit; }