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
DAERT.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_DAERT_h)
24 #define octave_DAERT_h 1
25 
26 #include "octave-config.h"
27 
28 #include "DAE.h"
29 #include "DAERTFunc.h"
30 #include "base-dae.h"
31 
32 class
33 DAERT : public base_diff_alg_eqn, public DAERTFunc
34 {
35 public:
36 
37  DAERT (void)
38  : base_diff_alg_eqn (), DAERTFunc () { }
39 
40  DAERT (const ColumnVector& xx, double tt, DAERTFunc& f)
41  : base_diff_alg_eqn (xx, tt), DAERTFunc (f) { }
42 
43  DAERT (const ColumnVector& xx, const ColumnVector& xxdot, double tt,
44  DAERTFunc& f)
45  : base_diff_alg_eqn (xx, xxdot, tt), DAERTFunc (f) { }
46 
47  DAERT (const DAERT& a)
48  : base_diff_alg_eqn (a), DAERTFunc (a) { }
49 
51  {
52  if (this != &a)
53  {
56 
57  }
58  return *this;
59  }
60 
61  virtual ~DAERT (void) { }
62 
63  void initialize (const ColumnVector& xx, const ColumnVector& xxdot,
64  double tt)
65  {
66  base_diff_alg_eqn::initialize (xx, xxdot, tt);
67  }
68 };
69 
70 #endif
Definition: DAERT.h:32
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
void initialize(const ColumnVector &x0, double t0)
Definition: base-dae.h:60
base_diff_alg_eqn & operator=(const base_diff_alg_eqn &a)
Definition: base-dae.h:50
virtual ~DAERT(void)
Definition: DAERT.h:61
DAERT(const ColumnVector &xx, const ColumnVector &xxdot, double tt, DAERTFunc &f)
Definition: DAERT.h:43
DAERT(const ColumnVector &xx, double tt, DAERTFunc &f)
Definition: DAERT.h:40
calling an anonymous function involves an overhead quite comparable to the overhead of an m file function Passing a handle to a built in function is because the interpreter is not involved in the internal loop For a
Definition: cellfun.cc:398
ColumnVector & operator=(const ColumnVector &a)
Definition: dColVector.h:55
void initialize(const ColumnVector &xx, const ColumnVector &xxdot, double tt)
Definition: DAERT.h:63
DAERT(void)
Definition: DAERT.h:37
DAERTFunc & operator=(const DAERTFunc &a)
Definition: DAERTFunc.h:55
DAERT(const DAERT &a)
Definition: DAERT.h:47