GNU Octave 10.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 
Loading...
Searching...
No Matches
LSODE.h
Go to the documentation of this file.
1////////////////////////////////////////////////////////////////////////
2//
3// Copyright (C) 1996-2025 The Octave Project Developers
4//
5// See the file COPYRIGHT.md in the top-level directory of this
6// distribution or <https://octave.org/copyright/>.
7//
8// This file is part of Octave.
9//
10// Octave is free software: you can redistribute it and/or modify it
11// under the terms of the GNU General Public License as published by
12// the Free Software Foundation, either version 3 of the License, or
13// (at your option) any later version.
14//
15// Octave is distributed in the hope that it will be useful, but
16// WITHOUT ANY WARRANTY; without even the implied warranty of
17// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18// GNU General Public License for more details.
19//
20// You should have received a copy of the GNU General Public License
21// along with Octave; see the file COPYING. If not, see
22// <https://www.gnu.org/licenses/>.
23//
24////////////////////////////////////////////////////////////////////////
25
26#if ! defined (octave_LSODE_h)
27#define octave_LSODE_h 1
28
29#include "octave-config.h"
30
31#include <string>
32
33#include "Array.h"
34#include "LSODE-opts.h"
35
36class OCTAVE_API LSODE : public ODE, public LSODE_options
37{
38public:
39
41 : ODE (), LSODE_options (), m_initialized (false), m_method_flag (0),
42 m_itask (0), m_iopt (0), m_itol (0), m_liw (0), m_lrw (0),
43 m_iwork (), m_rwork (), m_rel_tol (0.0), m_abs_tol () { }
44
45 LSODE (const ColumnVector& s, double tm, const ODEFunc& f)
46 : ODE (s, tm, f), LSODE_options (), m_initialized (false),
47 m_method_flag (0), m_itask (0), m_iopt (0), m_itol (0), m_liw (0),
48 m_lrw (0), m_iwork (), m_rwork (), m_rel_tol (0.0), m_abs_tol () { }
49
50 OCTAVE_DEFAULT_COPY_MOVE_DELETE (LSODE)
51
52 ColumnVector do_integrate (double t);
53
54 Matrix do_integrate (const ColumnVector& tout);
55
56 Matrix do_integrate (const ColumnVector& tout, const ColumnVector& tcrit);
57
58 std::string error_message () const;
59
60private:
61
62 bool m_initialized;
63
64 octave_f77_int_type m_method_flag;
65 octave_f77_int_type m_itask;
66 octave_f77_int_type m_iopt;
67 octave_f77_int_type m_itol;
68
69 octave_f77_int_type m_liw;
70 octave_f77_int_type m_lrw;
71
73 Array<double> m_rwork;
74
75 double m_rel_tol;
76
77 Array<double> m_abs_tol;
78};
79
80#endif
N Dimensional Array with copy-on-write semantics.
Definition Array.h:130
Definition LSODE.h:37
LSODE(const ColumnVector &s, double tm, const ODEFunc &f)
Definition LSODE.h:45
LSODE()
Definition LSODE.h:40
Definition ODE.h:36
virtual ColumnVector do_integrate(double tt)=0
virtual std::string error_message() const =0
F77_RET_T const F77_DBLE const F77_DBLE * f
#define OCTAVE_API
Definition main.in.cc:55