GNU Octave  4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DASPK.h
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 1996-2015 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 the
9 Free Software Foundation; either version 3 of the License, or (at your
10 option) any later version.
11 
12 Octave is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 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 <http://www.gnu.org/licenses/>.
20 
21 */
22 
23 #if !defined (octave_DASPK_h)
24 #define octave_DASPK_h 1
25 
26 #include <cfloat>
27 
28 #include "DASPK-opts.h"
29 #include "lo-math.h"
30 
31 class
32 OCTAVE_API
33 DASPK : public DAE, public DASPK_options
34 {
35 public:
36 
37  DASPK (void)
38  : DAE (), DASPK_options (), initialized (false), liw (0), lrw (0),
39  info (), iwork (), rwork (), abs_tol (), rel_tol () { }
40 
41  DASPK (const ColumnVector& s, double tm, DAEFunc& f)
42  : DAE (s, tm, f), DASPK_options (), initialized (false), liw (0),
43  lrw (0), info (), iwork (), rwork (), abs_tol (), rel_tol () { }
44 
45  DASPK (const ColumnVector& s, const ColumnVector& deriv,
46  double tm, DAEFunc& f)
47  : DAE (s, deriv, tm, f), DASPK_options (), initialized (false),
48  liw (0), lrw (0), info (), iwork (), rwork (), abs_tol (),
49  rel_tol () { }
50 
51  ~DASPK (void) { }
52 
53  ColumnVector do_integrate (double t);
54 
55  Matrix do_integrate (const ColumnVector& tout);
56 
57  Matrix do_integrate (const ColumnVector& tout, const ColumnVector& tcrit);
58 
59  Matrix integrate (const ColumnVector& tout, Matrix& xdot_out);
60 
61  Matrix integrate (const ColumnVector& tout, Matrix& xdot_out,
62  const ColumnVector& tcrit);
63 
64  std::string error_message (void) const;
65 
66 private:
67 
69 
72 
75 
77 
80 };
81 
82 #endif
octave_idx_type lrw
Definition: DASPK.h:71
DASPK(const ColumnVector &s, const ColumnVector &deriv, double tm, DAEFunc &f)
Definition: DASPK.h:45
DASPK(void)
Definition: DASPK.h:37
DASPK(const ColumnVector &s, double tm, DAEFunc &f)
Definition: DASPK.h:41
Array< double > rwork
Definition: DASPK.h:76
~DASPK(void)
Definition: DASPK.h:51
Array< octave_idx_type > iwork
Definition: DASPK.h:74
Definition: DASPK.h:31
F77_RET_T const double const double * f
octave_idx_type liw
Definition: DASPK.h:70
Definition: dMatrix.h:35
Array< double > abs_tol
Definition: DASPK.h:78
bool initialized
Definition: DASPK.h:68
Definition: DAE.h:29
Array< octave_idx_type > info
Definition: DASPK.h:73
Array< double > rel_tol
Definition: DASPK.h:79