GNU Octave
10.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
Loading...
Searching...
No Matches
DASPK.h
Go to the documentation of this file.
1
////////////////////////////////////////////////////////////////////////
2
//
3
// Copyright (C) 1996-2025 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_DASPK_h)
27
#define octave_DASPK_h 1
28
29
#include "octave-config.h"
30
31
#include <string>
32
33
#include "
Array.h
"
34
#include "DASPK-opts.h"
35
36
#include "
mx-fwd.h
"
37
38
class
OCTAVE_API
DASPK
:
public
DAE
,
public
DASPK_options
39
{
40
public
:
41
42
DASPK
()
43
:
DAE
(),
DASPK_options
(), m_initialized (false), m_liw (0), m_lrw (0),
44
m_info (), m_iwork (), m_rwork (), m_abs_tol (), m_rel_tol () { }
45
46
DASPK
(
const
ColumnVector
& s,
double
tm,
DAEFunc
&
f
)
47
:
DAE
(s, tm,
f
),
DASPK_options
(), m_initialized (false), m_liw (0),
48
m_lrw (0), m_info (), m_iwork (), m_rwork (), m_abs_tol (), m_rel_tol ()
49
{ }
50
51
DASPK
(
const
ColumnVector
& s,
const
ColumnVector
& deriv,
52
double
tm,
DAEFunc
&
f
)
53
:
DAE
(s, deriv, tm,
f
),
DASPK_options
(), m_initialized (false),
54
m_liw (0), m_lrw (0), m_info (), m_iwork (), m_rwork (), m_abs_tol (),
55
m_rel_tol () { }
56
57
OCTAVE_DEFAULT_COPY_MOVE_DELETE (
DASPK
)
58
59
ColumnVector
do_integrate (
double
t);
60
61
Matrix
do_integrate (
const
ColumnVector
& tout);
62
63
Matrix
do_integrate (
const
ColumnVector
& tout,
const
ColumnVector
& tcrit);
64
65
Matrix
integrate (
const
ColumnVector
& tout,
Matrix
& xdot_out);
66
67
Matrix
integrate (
const
ColumnVector
& tout,
Matrix
& xdot_out,
68
const
ColumnVector
& tcrit);
69
70
std::string
error_message
()
const
;
71
72
private
:
73
74
bool
m_initialized;
75
76
octave_f77_int_type m_liw;
77
octave_f77_int_type m_lrw;
78
79
Array<octave_f77_int_type>
m_info;
80
Array<octave_f77_int_type>
m_iwork;
81
82
Array<double>
m_rwork;
83
84
Array<double>
m_abs_tol;
85
Array<double>
m_rel_tol;
86
};
87
88
#endif
Array.h
Array
N Dimensional Array with copy-on-write semantics.
Definition
Array.h:130
ColumnVector
Definition
dColVector.h:35
DAEFunc
Definition
DAEFunc.h:34
DAE
Definition
DAE.h:35
DASPK_options
DASPK
Definition
DASPK.h:39
DASPK::DASPK
DASPK()
Definition
DASPK.h:42
DASPK::DASPK
DASPK(const ColumnVector &s, double tm, DAEFunc &f)
Definition
DASPK.h:46
DASPK::DASPK
DASPK(const ColumnVector &s, const ColumnVector &deriv, double tm, DAEFunc &f)
Definition
DASPK.h:51
Matrix
Definition
dMatrix.h:40
base_diff_eqn::error_message
virtual std::string error_message() const =0
f
F77_RET_T const F77_DBLE const F77_DBLE * f
Definition
lo-slatec-proto.h:39
OCTAVE_API
#define OCTAVE_API
Definition
main.in.cc:55
mx-fwd.h
liboctave
numeric
DASPK.h
Generated on Sat Aug 2 2025 06:52:14 for GNU Octave by
1.9.8