GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
DASSL.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_DASSL_h)
27 #define octave_DASSL_h 1
28 
29 #include "octave-config.h"
30 
31 #include <string>
32 
33 #include "Array.h"
34 #include "DASSL-opts.h"
35 
36 class Matrix;
37 
38 class
39 OCTAVE_API
40 DASSL : public DAE, public DASSL_options
41 {
42 public:
43 
44  DASSL (void)
45  : DAE (), DASSL_options (), initialized (false), liw (0), lrw (0),
46  info (), iwork (), rwork (), abs_tol (), rel_tol () { }
47 
48  DASSL (const ColumnVector& s, double tm, DAEFunc& f)
49  : DAE (s, tm, f), DASSL_options (), initialized (false), liw (0),
50  lrw (0), info (), iwork (), rwork (), abs_tol (), rel_tol () { }
51 
52  DASSL (const ColumnVector& s, const ColumnVector& deriv,
53  double tm, DAEFunc& f)
54  : DAE (s, deriv, tm, f), DASSL_options (), initialized (false),
55  liw (0), lrw (0), info (), iwork (), rwork (), abs_tol (),
56  rel_tol () { }
57 
58  ~DASSL (void) = default;
59 
60  ColumnVector do_integrate (double t);
61 
62  Matrix do_integrate (const ColumnVector& tout);
63 
64  Matrix do_integrate (const ColumnVector& tout, const ColumnVector& tcrit);
65 
66  Matrix integrate (const ColumnVector& tout, Matrix& xdot_out);
67 
68  Matrix integrate (const ColumnVector& tout, Matrix& xdot_out,
69  const ColumnVector& tcrit);
70 
71  std::string error_message (void) const;
72 
73 private:
74 
76 
77  octave_f77_int_type liw;
78  octave_f77_int_type lrw;
79 
82 
84 
87 };
88 
89 #endif
Definition: DAE.h:37
Definition: DASSL.h:41
octave_f77_int_type lrw
Definition: DASSL.h:78
Array< double > rel_tol
Definition: DASSL.h:86
DASSL(void)
Definition: DASSL.h:44
bool initialized
Definition: DASSL.h:75
octave_f77_int_type liw
Definition: DASSL.h:77
~DASSL(void)=default
DASSL(const ColumnVector &s, const ColumnVector &deriv, double tm, DAEFunc &f)
Definition: DASSL.h:52
Array< octave_f77_int_type > iwork
Definition: DASSL.h:81
DASSL(const ColumnVector &s, double tm, DAEFunc &f)
Definition: DASSL.h:48
Array< double > rwork
Definition: DASSL.h:83
Array< octave_f77_int_type > info
Definition: DASSL.h:80
Array< double > abs_tol
Definition: DASSL.h:85
Definition: dMatrix.h:42
F77_RET_T const F77_DBLE const F77_DBLE * f