GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
DAE.h
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 1993-2018 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
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11 
12 Octave is distributed in the hope that it will be useful, but
13 WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License 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 <https://www.gnu.org/licenses/>.
20 
21 */
22 
23 #if ! defined (octave_DAE_h)
24 #define octave_DAE_h 1
25 
26 #include "octave-config.h"
27 
28 #include "DAEFunc.h"
29 #include "base-dae.h"
30 
31 class
32 OCTAVE_API
33 DAE : public base_diff_alg_eqn, public DAEFunc
34 {
35 public:
36 
37  DAE (void)
38  : base_diff_alg_eqn (), DAEFunc () { }
39 
40  DAE (const ColumnVector& xx, double tt, DAEFunc& f)
41  : base_diff_alg_eqn (xx, tt), DAEFunc (f) { }
42 
43  DAE (const ColumnVector& xx, const ColumnVector& xxdot,
44  double tt, DAEFunc& f)
45  : base_diff_alg_eqn (xx, xxdot, tt), DAEFunc (f) { }
46 
47  DAE (const DAE& a)
48  : base_diff_alg_eqn (a), DAEFunc (a) { }
49 
50  DAE& operator = (const DAE& a)
51  {
52  if (this != &a)
53  {
56  }
57  return *this;
58  }
59 
60  virtual ~DAE (void) = default;
61 };
62 
63 #endif
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 const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE * f
base_diff_alg_eqn & operator=(const base_diff_alg_eqn &a)
Definition: base-dae.h:50
DAE(const ColumnVector &xx, const ColumnVector &xxdot, double tt, DAEFunc &f)
Definition: DAE.h:43
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:400
DAE(void)
Definition: DAE.h:37
DAE(const ColumnVector &xx, double tt, DAEFunc &f)
Definition: DAE.h:40
DAEFunc & operator=(const DAEFunc &a)
Definition: DAEFunc.h:60
DAE(const DAE &a)
Definition: DAE.h:47
Definition: DAE.h:31