GNU Octave  4.2.1
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
DASRT.h
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 2002-2017 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_DASRT_h)
24 #define octave_DASRT_h 1
25 
26 #include "octave-config.h"
27 
28 #include <cfloat>
29 
30 #include "DASRT-opts.h"
31 
32 class
34 {
35 public:
36 
37  DASRT_result (void)
38  : x (), xdot (), t () { }
39 
40  DASRT_result (const Matrix& xx, const Matrix& xxdot, const ColumnVector& tt)
41  : x (xx), xdot (xxdot), t (tt) { }
42 
44  : x (r.x), xdot (r.xdot), t (r.t) { }
45 
47  {
48  if (this != &r)
49  {
50  x = r.x;
51  xdot = r.xdot;
52  t = r.t;
53  }
54  return *this;
55  }
56 
57  ~DASRT_result (void) { }
58 
59  Matrix state (void) const { return x; }
60  Matrix deriv (void) const { return xdot; }
61  ColumnVector times (void) const { return t; }
62 
63 private:
64 
68 };
69 
70 class
71 OCTAVE_API
72 DASRT : public DAERT, public DASRT_options
73 {
74 public:
75 
76  DASRT (void)
77  : DAERT (), DASRT_options (), initialized (false),
78  liw (0), lrw (0), ng (0), info (), iwork (), jroot (), rwork (),
79  abs_tol (), rel_tol ()
80  { }
81 
82  DASRT (const ColumnVector& s, double tm, DAERTFunc& f)
83  : DAERT (s, tm, f), DASRT_options (), initialized (false),
84  liw (0), lrw (0), ng (0), info (), iwork (), jroot (), rwork (),
85  abs_tol (), rel_tol ()
86  { }
87 
88  DASRT (const ColumnVector& s, const ColumnVector& deriv,
89  double tm, DAERTFunc& f)
90  : DAERT (s, deriv, tm, f), DASRT_options (), initialized (false),
91  liw (0), lrw (0), ng (0), info (), iwork (), jroot (), rwork (),
92  abs_tol (), rel_tol ()
93  { }
94 
95  ~DASRT (void) { }
96 
97  DASRT_result integrate (const ColumnVector& tout);
98 
99  DASRT_result integrate (const ColumnVector& tout,
100  const ColumnVector& tcrit);
101 
102  std::string error_message (void) const;
103 
104 private:
105 
107 
110 
112 
116 
118 
121 
122  void integrate (double t);
123 };
124 
125 #endif
Array< octave_idx_type > iwork
Definition: DASRT.h:114
Definition: DAERT.h:32
Definition: DASRT.h:70
Matrix state(void) const
Definition: DASRT.h:59
bool initialized
Definition: DASRT.h:106
F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &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 F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T F77_REAL F77_REAL &F77_RET_T F77_DBLE F77_DBLE &F77_RET_T const F77_DBLE const F77_DBLE * f
octave_idx_type ng
Definition: DASRT.h:111
Matrix x
Definition: DASRT.h:65
Array< double > rel_tol
Definition: DASRT.h:120
DASRT_result(const Matrix &xx, const Matrix &xxdot, const ColumnVector &tt)
Definition: DASRT.h:40
DASRT_result(void)
Definition: DASRT.h:37
~DASRT(void)
Definition: DASRT.h:95
Matrix xdot
Definition: DASRT.h:66
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:935
Matrix deriv(void) const
Definition: DASRT.h:60
DASRT(void)
Definition: DASRT.h:76
s
Definition: file-io.cc:2682
ColumnVector & operator=(const ColumnVector &a)
Definition: dColVector.h:55
DASRT(const ColumnVector &s, const ColumnVector &deriv, double tm, DAERTFunc &f)
Definition: DASRT.h:88
is false
Definition: cellfun.cc:398
Definition: dMatrix.h:37
ColumnVector times(void) const
Definition: DASRT.h:61
octave_idx_type lrw
Definition: DASRT.h:109
ColumnVector t
Definition: DASRT.h:67
Array< double > rwork
Definition: DASRT.h:117
~DASRT_result(void)
Definition: DASRT.h:57
Array< octave_idx_type > info
Definition: DASRT.h:113
Array< octave_idx_type > jroot
Definition: DASRT.h:115
DASRT(const ColumnVector &s, double tm, DAERTFunc &f)
Definition: DASRT.h:82
octave_idx_type liw
Definition: DASRT.h:108
Array< double > abs_tol
Definition: DASRT.h:119
DASRT_result(const DASRT_result &r)
Definition: DASRT.h:43
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:854
F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &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 F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T F77_REAL F77_REAL &F77_RET_T F77_DBLE F77_DBLE &F77_RET_T const F77_DBLE * x