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 {
"integration method",
45 {
"integration",
"method", 0, 0, },
46 { 3, 0, 0, 0, }, 1, },
48 {
"initial step size",
49 {
"initial",
"step",
"size", 0, },
50 { 3, 0, 0, 0, }, 1, },
53 {
"maximum",
"order", 0, 0, },
54 { 2, 1, 0, 0, }, 2, },
56 {
"maximum step size",
57 {
"maximum",
"step",
"size", 0, },
58 { 2, 1, 0, 0, }, 2, },
60 {
"minimum step size",
61 {
"minimum",
"step",
"size", 0, },
62 { 2, 0, 0, 0, }, 1, },
65 {
"step",
"limit", 0, 0, },
66 { 1, 0, 0, 0, }, 1, },
72 std::ostringstream buf;
75 <<
"Options for LSODE include:\n\n"
77 <<
" ------- -----\n";
90 if (val.
numel () == 1)
194 keyword, list[0].min_toks_to_match,
MAX_TOKENS))
201 keyword, list[1].min_toks_to_match,
MAX_TOKENS))
208 keyword, list[2].min_toks_to_match,
MAX_TOKENS))
215 keyword, list[3].min_toks_to_match,
MAX_TOKENS))
222 keyword, list[4].min_toks_to_match,
MAX_TOKENS))
229 keyword, list[5].min_toks_to_match,
MAX_TOKENS))
236 keyword, list[6].min_toks_to_match,
MAX_TOKENS))
243 keyword, list[7].min_toks_to_match,
MAX_TOKENS))
251 warning (
"lsode_options: no match for `%s'", keyword.c_str ());
263 keyword, list[0].min_toks_to_match,
MAX_TOKENS))
267 if (val.
numel () == 1)
277 keyword, list[1].min_toks_to_match,
MAX_TOKENS))
284 keyword, list[2].min_toks_to_match,
MAX_TOKENS))
289 keyword, list[3].min_toks_to_match,
MAX_TOKENS))
296 keyword, list[4].min_toks_to_match,
MAX_TOKENS))
300 retval =
static_cast<double> (
val);
303 keyword, list[5].min_toks_to_match,
MAX_TOKENS))
310 keyword, list[6].min_toks_to_match,
MAX_TOKENS))
317 keyword, list[7].min_toks_to_match,
MAX_TOKENS))
321 retval =
static_cast<double> (
val);
325 warning (
"lsode_options: no match for `%s'", keyword.c_str ());
416 std::string keyword =
args(0).xstring_value (
"lsode_options: expecting keyword as first argument");
double relative_tolerance(void) const
static octave_value_list show_LSODE_options(const std::string &keyword)
void set_initial_step_size(double val)
double maximum_step_size(void) const
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
double initial_step_size(void) const
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)
std::string integration_method(void) const
static LSODE_options_struct LSODE_options_table[]
void set_maximum_step_size(double val)
void set_relative_tolerance(double val)
std::string string_value(bool force=false) const
void set_minimum_step_size(double val)
octave_idx_type step_limit(void) const
void set_step_limit(octave_idx_type val)
int keyword_almost_match(const char *const *std, int *min_len, const std::string &s, int min_toks_to_match, int max_toks)
static void set_LSODE_options(const std::string &keyword, const octave_value &val)
void warning(const char *fmt,...)
octave_idx_type maximum_order(void) const
static LSODE_options lsode_opts
void octave_print_internal(std::ostream &, char, bool)
Array< double > vector_value(bool frc_str_conv=false, bool frc_vec_conv=false) const
static void print_LSODE_options(std::ostream &os)
void set_maximum_order(octave_idx_type val)
double double_value(bool frc_str_conv=false) const
double minimum_step_size(void) const
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
void set_integration_method(const std::string &val)