GNU Octave 7.1.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-2022 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 "mx-fwd.h"
34
35#include "Array.h"
36#include "DASSL-opts.h"
37
38class
40DASSL : public DAE, public DASSL_options
41{
42public:
43
44 DASSL (void)
45 : DAE (), DASSL_options (), m_initialized (false), m_liw (0), m_lrw (0),
46 m_info (), m_iwork (), m_rwork (), m_abs_tol (), m_rel_tol () { }
47
48 DASSL (const ColumnVector& s, double tm, DAEFunc& f)
49 : DAE (s, tm, f), DASSL_options (), m_initialized (false), m_liw (0),
50 m_lrw (0), m_info (), m_iwork (), m_rwork (), m_abs_tol (), m_rel_tol ()
51 { }
52
53 DASSL (const ColumnVector& s, const ColumnVector& deriv,
54 double tm, DAEFunc& f)
55 : DAE (s, deriv, tm, f), DASSL_options (), m_initialized (false),
56 m_liw (0), m_lrw (0), m_info (), m_iwork (), m_rwork (), m_abs_tol (),
57 m_rel_tol () { }
58
59 ~DASSL (void) = default;
60
61 ColumnVector do_integrate (double t);
62
63 Matrix do_integrate (const ColumnVector& tout);
64
65 Matrix do_integrate (const ColumnVector& tout, const ColumnVector& tcrit);
66
67 Matrix integrate (const ColumnVector& tout, Matrix& xdot_out);
68
69 Matrix integrate (const ColumnVector& tout, Matrix& xdot_out,
70 const ColumnVector& tcrit);
71
72 std::string error_message (void) const;
73
74private:
75
77
78 octave_f77_int_type m_liw;
79 octave_f77_int_type m_lrw;
80
83
85
88};
89
90#endif
Definition: DAE.h:37
Definition: DASSL.h:41
DASSL(void)
Definition: DASSL.h:44
Array< octave_f77_int_type > m_iwork
Definition: DASSL.h:82
Array< double > m_rwork
Definition: DASSL.h:84
~DASSL(void)=default
DASSL(const ColumnVector &s, const ColumnVector &deriv, double tm, DAEFunc &f)
Definition: DASSL.h:53
Array< octave_f77_int_type > m_info
Definition: DASSL.h:81
Array< double > m_abs_tol
Definition: DASSL.h:86
octave_f77_int_type m_liw
Definition: DASSL.h:78
DASSL(const ColumnVector &s, double tm, DAEFunc &f)
Definition: DASSL.h:48
bool m_initialized
Definition: DASSL.h:76
Array< double > m_rel_tol
Definition: DASSL.h:87
octave_f77_int_type m_lrw
Definition: DASSL.h:79
Definition: dMatrix.h:42
F77_RET_T const F77_DBLE const F77_DBLE * f
#define OCTAVE_API
Definition: main.in.cc:55