36 {
"absolute tolerance",
37 {
"absolute",
"tolerance", 0, 0, },
38 { 1, 0, 0, 0, }, 1, },
40 {
"relative tolerance",
41 {
"relative",
"tolerance", 0, 0, },
42 { 1, 0, 0, 0, }, 1, },
44 {
"initial step size",
45 {
"initial",
"step",
"size", 0, },
46 { 1, 0, 0, 0, }, 1, },
49 {
"maximum",
"order", 0, 0, },
50 { 1, 1, 0, 0, }, 2, },
52 {
"maximum step size",
53 {
"maximum",
"step",
"size", 0, },
54 { 1, 1, 0, 0, }, 2, },
57 {
"step",
"limit", 0, 0, },
58 { 1, 0, 0, 0, }, 1, },
64 std::ostringstream buf;
67 <<
"Options for DASRT include:\n\n"
69 <<
" ------- -----\n";
82 if (val.
numel () == 1)
104 if (val.
numel () == 1)
106 os <<
val(0) <<
"\n";
174 keyword, list[0].min_toks_to_match,
MAX_TOKENS))
181 keyword, list[1].min_toks_to_match,
MAX_TOKENS))
188 keyword, list[2].min_toks_to_match,
MAX_TOKENS))
195 keyword, list[3].min_toks_to_match,
MAX_TOKENS))
202 keyword, list[4].min_toks_to_match,
MAX_TOKENS))
209 keyword, list[5].min_toks_to_match,
MAX_TOKENS))
217 warning (
"dasrt_options: no match for `%s'", keyword.c_str ());
229 keyword, list[0].min_toks_to_match,
MAX_TOKENS))
233 if (val.
numel () == 1)
243 keyword, list[1].min_toks_to_match,
MAX_TOKENS))
247 if (val.
numel () == 1)
257 keyword, list[2].min_toks_to_match,
MAX_TOKENS))
264 keyword, list[3].min_toks_to_match,
MAX_TOKENS))
268 retval =
static_cast<double> (
val);
271 keyword, list[4].min_toks_to_match,
MAX_TOKENS))
278 keyword, list[5].min_toks_to_match,
MAX_TOKENS))
282 retval =
static_cast<double> (
val);
286 warning (
"dasrt_options: no match for `%s'", keyword.c_str ());
362 std::string keyword =
args(0).xstring_value (
"dasrt_options: expecting keyword as first argument");
double maximum_step_size(void) const
void set_relative_tolerance(double val)
The value of lines which begin with a space character are not saved in the history list A value of all commands are saved on the history list
void set_step_limit(octave_idx_type val)
OCTINTERP_API void print_usage(void)
octave_idx_type numel(void) const
Number of elements in the array.
identity matrix If supplied two scalar respectively For allows like xample val
void set_absolute_tolerance(double val)
int int_value(bool req_int=false, bool frc_str_conv=false) const
#define DEFUN(name, args_name, nargout_name, doc)
static DASRT_options dasrt_opts
void set_maximum_order(octave_idx_type val)
void set_maximum_step_size(double val)
static octave_value_list show_DASRT_options(const std::string &keyword)
static void print_DASRT_options(std::ostream &os)
static void set_DASRT_options(const std::string &keyword, const octave_value &val)
int keyword_almost_match(const char *const *std, int *min_len, const std::string &s, int min_toks_to_match, int max_toks)
octave_idx_type step_limit(void) const
void warning(const char *fmt,...)
Array< double > relative_tolerance(void) const
Array< double > absolute_tolerance(void) const
void octave_print_internal(std::ostream &, char, bool)
Array< double > vector_value(bool frc_str_conv=false, bool frc_vec_conv=false) const
octave_idx_type maximum_order(void) const
void set_initial_step_size(double val)
double initial_step_size(void) const
double double_value(bool frc_str_conv=false) const
static DASRT_options_struct DASRT_options_table[]
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string