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;
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; }
96 x_relative_tolerance.resize (
dim_vector (1, 1));
97 x_relative_tolerance(0) = (val > 0.0) ? val : ::sqrt (std::numeric_limits<double>::epsilon ());
102 { x_relative_tolerance = val; reset =
true; }
105 { x_initial_step_size = (val >= 0.0) ? val : -1.0; reset =
true; }
108 { x_maximum_order = val; reset =
true; }
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; }
122 {
return x_initial_step_size; }
125 {
return x_maximum_order; }
128 {
return x_maximum_step_size; }
131 {
return x_step_limit; }
double maximum_step_size(void) const
void set_relative_tolerance(double val)
octave_idx_type x_step_limit
void set_step_limit(octave_idx_type val)
void set_absolute_tolerance(double val)
octave_idx_type x_maximum_order
DASRT_options(const DASRT_options &opt)
void set_maximum_order(octave_idx_type val)
void set_maximum_step_size(double val)
void set_relative_tolerance(const Array< double > &val)
ColumnVector & operator=(const ColumnVector &a)
double x_maximum_step_size
octave_idx_type step_limit(void) const
Array< double > x_absolute_tolerance
void set_absolute_tolerance(const Array< double > &val)
Array< double > relative_tolerance(void) const
Array< double > x_relative_tolerance
Array< double > absolute_tolerance(void) const
octave_idx_type maximum_order(void) const
void set_initial_step_size(double val)
double x_initial_step_size
double initial_step_size(void) const
void set_options(const DASRT_options &opt)
void set_default_options(void)