GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
LSODE.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 //
3 // Copyright (C) 1996-2021 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 
36 class
37 OCTAVE_API
38 LSODE : public ODE, public LSODE_options
39 {
40 public:
41 
42  LSODE (void)
43  : ODE (), LSODE_options (), initialized (false), method_flag (0),
44  itask (0), iopt (0), itol (0), liw (0), lrw (0),
45  iwork (), rwork (), rel_tol (0.0), abs_tol () { }
46 
47  LSODE (const ColumnVector& s, double tm, const ODEFunc& f)
48  : ODE (s, tm, f), LSODE_options (), initialized (false), method_flag (0),
49  itask (0), iopt (0), itol (0), liw (0), lrw (0),
50  iwork (), rwork (), rel_tol (0.0), abs_tol () { }
51 
52  ~LSODE (void) = default;
53 
54  ColumnVector do_integrate (double t);
55 
56  Matrix do_integrate (const ColumnVector& tout);
57 
58  Matrix do_integrate (const ColumnVector& tout, const ColumnVector& tcrit);
59 
60  std::string error_message (void) const;
61 
62 private:
63 
65 
66  octave_f77_int_type method_flag;
67  octave_f77_int_type itask;
68  octave_f77_int_type iopt;
69  octave_f77_int_type itol;
70 
71  octave_f77_int_type liw;
72  octave_f77_int_type lrw;
73 
76 
77  double rel_tol;
78 
80 };
81 
82 #endif
Definition: LSODE.h:39
LSODE(void)
Definition: LSODE.h:42
LSODE(const ColumnVector &s, double tm, const ODEFunc &f)
Definition: LSODE.h:47
octave_f77_int_type itol
Definition: LSODE.h:69
octave_f77_int_type iopt
Definition: LSODE.h:68
octave_f77_int_type method_flag
Definition: LSODE.h:66
bool initialized
Definition: LSODE.h:64
octave_f77_int_type itask
Definition: LSODE.h:67
Array< double > rwork
Definition: LSODE.h:75
octave_f77_int_type lrw
Definition: LSODE.h:72
Array< double > abs_tol
Definition: LSODE.h:79
Array< octave_f77_int_type > iwork
Definition: LSODE.h:74
double rel_tol
Definition: LSODE.h:77
~LSODE(void)=default
octave_f77_int_type liw
Definition: LSODE.h:71
Definition: dMatrix.h:42
Definition: ODE.h:37
F77_RET_T const F77_DBLE const F77_DBLE * f