36 {
"absolute tolerance",
37 {
"absolute",
"tolerance", 0, 0, 0, },
38 { 1, 0, 0, 0, 0, }, 1, },
40 {
"relative tolerance",
41 {
"relative",
"tolerance", 0, 0, 0, },
42 { 1, 0, 0, 0, 0, }, 1, },
44 {
"compute consistent initial condition",
45 {
"compute",
"consistent",
"initial",
"condition", 0, },
46 { 1, 0, 0, 0, 0, }, 1, },
48 {
"enforce nonnegativity constraints",
49 {
"enforce",
"nonnegativity",
"constraints", 0, 0, },
50 { 1, 0, 0, 0, 0, }, 1, },
52 {
"initial step size",
53 {
"initial",
"step",
"size", 0, 0, },
54 { 1, 0, 0, 0, 0, }, 1, },
57 {
"maximum",
"order", 0, 0, 0, },
58 { 1, 1, 0, 0, 0, }, 2, },
60 {
"maximum step size",
61 {
"maximum",
"step",
"size", 0, 0, },
62 { 1, 1, 0, 0, 0, }, 2, },
65 {
"step",
"limit", 0, 0, 0, },
66 { 1, 0, 0, 0, 0, }, 1, },
72 std::ostringstream buf;
75 <<
"Options for DASSL include:\n\n"
77 <<
" ------- -----\n";
90 if (val.
numel () == 1)
112 if (val.
numel () == 1)
114 os <<
val(0) <<
"\n";
206 keyword, list[0].min_toks_to_match,
MAX_TOKENS))
213 keyword, list[1].min_toks_to_match,
MAX_TOKENS))
220 keyword, list[2].min_toks_to_match,
MAX_TOKENS))
227 keyword, list[3].min_toks_to_match,
MAX_TOKENS))
234 keyword, list[4].min_toks_to_match,
MAX_TOKENS))
241 keyword, list[5].min_toks_to_match,
MAX_TOKENS))
248 keyword, list[6].min_toks_to_match,
MAX_TOKENS))
255 keyword, list[7].min_toks_to_match,
MAX_TOKENS))
263 warning (
"dassl_options: no match for `%s'", keyword.c_str ());
275 keyword, list[0].min_toks_to_match,
MAX_TOKENS))
279 if (val.
numel () == 1)
289 keyword, list[1].min_toks_to_match,
MAX_TOKENS))
293 if (val.
numel () == 1)
303 keyword, list[2].min_toks_to_match,
MAX_TOKENS))
307 retval =
static_cast<double> (
val);
310 keyword, list[3].min_toks_to_match,
MAX_TOKENS))
314 retval =
static_cast<double> (
val);
317 keyword, list[4].min_toks_to_match,
MAX_TOKENS))
324 keyword, list[5].min_toks_to_match,
MAX_TOKENS))
328 retval =
static_cast<double> (
val);
331 keyword, list[6].min_toks_to_match,
MAX_TOKENS))
338 keyword, list[7].min_toks_to_match,
MAX_TOKENS))
342 retval =
static_cast<double> (
val);
346 warning (
"dassl_options: no match for `%s'", keyword.c_str ());
434 std::string keyword =
args(0).xstring_value (
"dassl_options: expecting keyword as first argument");
octave_idx_type maximum_order(void) const
void set_maximum_order(octave_idx_type val)
static octave_value_list show_DASSL_options(const std::string &keyword)
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
Array< double > absolute_tolerance(void) const
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_relative_tolerance(double val)
int int_value(bool req_int=false, bool frc_str_conv=false) const
Array< double > relative_tolerance(void) const
#define DEFUN(name, args_name, nargout_name, doc)
void set_enforce_nonnegativity_constraints(octave_idx_type val)
static DASSL_options dassl_opts
octave_idx_type compute_consistent_initial_condition(void) const
octave_idx_type enforce_nonnegativity_constraints(void) const
int keyword_almost_match(const char *const *std, int *min_len, const std::string &s, int min_toks_to_match, int max_toks)
void warning(const char *fmt,...)
void set_absolute_tolerance(double val)
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 step_limit(void) const
void set_maximum_step_size(double val)
double initial_step_size(void) const
double maximum_step_size(void) const
void set_initial_step_size(double val)
static void print_DASSL_options(std::ostream &os)
double double_value(bool frc_str_conv=false) const
void set_compute_consistent_initial_condition(octave_idx_type val)
static DASSL_options_struct DASSL_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
static void set_DASSL_options(const std::string &keyword, const octave_value &val)