~gabriel1984sibiu/octave/octave

« back to all changes in this revision

Viewing changes to liboctave/numeric/DAE.h

  • Committer: Grevutiu Gabriel
  • Date: 2014-01-02 13:05:54 UTC
  • Revision ID: gabriel1984sibiu@gmail.com-20140102130554-3r7ivdjln1ni6kcg
New version (3.8.0) from upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 
 
3
Copyright (C) 1993-2013 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_DAE_h)
 
24
#define octave_DAE_h 1
 
25
 
 
26
#include "DAEFunc.h"
 
27
#include "base-dae.h"
 
28
 
 
29
class
 
30
OCTAVE_API
 
31
DAE : public base_diff_alg_eqn, public DAEFunc
 
32
{
 
33
public:
 
34
 
 
35
  DAE (void)
 
36
    : base_diff_alg_eqn (), DAEFunc () { }
 
37
 
 
38
  DAE (const ColumnVector& xx, double tt, DAEFunc& f)
 
39
    : base_diff_alg_eqn (xx, tt), DAEFunc (f) { }
 
40
 
 
41
  DAE (const ColumnVector& xx, const ColumnVector& xxdot,
 
42
       double tt, DAEFunc& f)
 
43
    : base_diff_alg_eqn (xx, xxdot, tt), DAEFunc (f) { }
 
44
 
 
45
  DAE (const DAE& a)
 
46
    : base_diff_alg_eqn (a), DAEFunc (a) { }
 
47
 
 
48
  DAE& operator = (const DAE& a)
 
49
  {
 
50
    if (this != &a)
 
51
      {
 
52
        base_diff_alg_eqn::operator = (a);
 
53
        DAEFunc::operator = (a);
 
54
      }
 
55
    return *this;
 
56
  }
 
57
 
 
58
  virtual ~DAE (void) { }
 
59
};
 
60
 
 
61
#endif