GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
DASPK.h
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 1996-2018 John W. Eaton
4 
5 This file is part of Octave.
6 
7 Octave is free software: you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11 
12 Octave is distributed in the hope that it will be useful, but
13 WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16 
17 You should have received a copy of the GNU General Public License
18 along with Octave; see the file COPYING. If not, see
19 <https://www.gnu.org/licenses/>.
20 
21 */
22 
23 #if ! defined (octave_DASPK_h)
24 #define octave_DASPK_h 1
25 
26 #include "octave-config.h"
27 
28 #include <string>
29 
30 #include "Array.h"
31 #include "DASPK-opts.h"
32 
33 class Matrix;
34 
35 class
36 OCTAVE_API
37 DASPK : public DAE, public DASPK_options
38 {
39 public:
40 
41  DASPK (void)
42  : DAE (), DASPK_options (), initialized (false), liw (0), lrw (0),
43  info (), iwork (), rwork (), abs_tol (), rel_tol () { }
44 
45  DASPK (const ColumnVector& s, double tm, DAEFunc& f)
46  : DAE (s, tm, f), DASPK_options (), initialized (false), liw (0),
47  lrw (0), info (), iwork (), rwork (), abs_tol (), rel_tol () { }
48 
49  DASPK (const ColumnVector& s, const ColumnVector& deriv,
50  double tm, DAEFunc& f)
51  : DAE (s, deriv, tm, f), DASPK_options (), initialized (false),
52  liw (0), lrw (0), info (), iwork (), rwork (), abs_tol (),
53  rel_tol () { }
54 
55  ~DASPK (void) = default;
56 
57  ColumnVector do_integrate (double t);
58 
59  Matrix do_integrate (const ColumnVector& tout);
60 
61  Matrix do_integrate (const ColumnVector& tout, const ColumnVector& tcrit);
62 
63  Matrix integrate (const ColumnVector& tout, Matrix& xdot_out);
64 
65  Matrix integrate (const ColumnVector& tout, Matrix& xdot_out,
66  const ColumnVector& tcrit);
67 
68  std::string error_message (void) const;
69 
70 private:
71 
73 
74  octave_f77_int_type liw;
75  octave_f77_int_type lrw;
76 
79 
81 
84 };
85 
86 #endif
octave_f77_int_type lrw
Definition: DASPK.h:75
F77_RET_T const F77_REAL const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE &F77_RET_T const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE * f
OCTAVE_EXPORT octave_value_list return the number of command line arguments passed to Octave If called with the optional argument the function t
Definition: ov-usr-fcn.cc:997
DASPK(const ColumnVector &s, const ColumnVector &deriv, double tm, DAEFunc &f)
Definition: DASPK.h:49
s
Definition: file-io.cc:2729
octave_f77_int_type liw
Definition: DASPK.h:74
DASPK(void)
Definition: DASPK.h:41
DASPK(const ColumnVector &s, double tm, DAEFunc &f)
Definition: DASPK.h:45
Array< double > rwork
Definition: DASPK.h:80
Definition: DASPK.h:35
is false
Definition: cellfun.cc:400
Definition: dMatrix.h:36
static bool initialized
Definition: defaults.cc:48
Array< octave_f77_int_type > iwork
Definition: DASPK.h:78
Array< octave_f77_int_type > info
Definition: DASPK.h:77
Array< double > abs_tol
Definition: DASPK.h:82
bool initialized
Definition: DASPK.h:72
Definition: DAE.h:31
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
Definition: utils.cc:888
Array< double > rel_tol
Definition: DASPK.h:83