Mercurial > hg > octave-avbm
annotate liboctave/numeric/DAE.h @ 16587:1a3bfb14b5da
Add and fix tests for ellipj, ellipke, and expint
* ellipj.cc: Fix demo, add validation tests.
* ellipke.m: Fix assert arguments, add tests.
* expint.m: Add tests.
author | Mike Miller <mtmiller@ieee.org> |
---|---|
date | Sun, 28 Apr 2013 17:08:11 -0400 |
parents | 648dabbb4c6b |
children |
rev | line source |
---|---|
3 | 1 /* |
2 | |
14138
72c96de7a403
maint: update copyright notices for 2012
John W. Eaton <jwe@octave.org>
parents:
11523
diff
changeset
|
3 Copyright (C) 1993-2012 John W. Eaton |
3 | 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 | |
7016 | 9 Free Software Foundation; either version 3 of the License, or (at your |
10 option) any later version. | |
3 | 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 | |
7016 | 18 along with Octave; see the file COPYING. If not, see |
19 <http://www.gnu.org/licenses/>. | |
3 | 20 |
21 */ | |
22 | |
382 | 23 #if !defined (octave_DAE_h) |
24 #define octave_DAE_h 1 | |
25 | |
3 | 26 #include "DAEFunc.h" |
3990 | 27 #include "base-dae.h" |
3 | 28 |
1868 | 29 class |
6108 | 30 OCTAVE_API |
3990 | 31 DAE : public base_diff_alg_eqn, public DAEFunc |
3 | 32 { |
33 public: | |
34 | |
1842 | 35 DAE (void) |
3990 | 36 : base_diff_alg_eqn (), DAEFunc () { } |
3 | 37 |
3509 | 38 DAE (const ColumnVector& xx, double tt, DAEFunc& f) |
3990 | 39 : base_diff_alg_eqn (xx, tt), DAEFunc (f) { } |
3 | 40 |
3509 | 41 DAE (const ColumnVector& xx, const ColumnVector& xxdot, |
3990 | 42 double tt, DAEFunc& f) |
43 : base_diff_alg_eqn (xx, xxdot, tt), DAEFunc (f) { } | |
3 | 44 |
1842 | 45 DAE (const DAE& a) |
3990 | 46 : base_diff_alg_eqn (a), DAEFunc (a){ } |
3 | 47 |
1842 | 48 DAE& operator = (const DAE& a) |
49 { | |
50 if (this != &a) | |
10312
cbc402e64d83
untabify liboctave header files
John W. Eaton <jwe@octave.org>
parents:
10158
diff
changeset
|
51 { |
cbc402e64d83
untabify liboctave header files
John W. Eaton <jwe@octave.org>
parents:
10158
diff
changeset
|
52 base_diff_alg_eqn::operator = (a); |
cbc402e64d83
untabify liboctave header files
John W. Eaton <jwe@octave.org>
parents:
10158
diff
changeset
|
53 DAEFunc::operator = (a); |
cbc402e64d83
untabify liboctave header files
John W. Eaton <jwe@octave.org>
parents:
10158
diff
changeset
|
54 } |
1842 | 55 return *this; |
56 } | |
57 | |
11504
81ff63e43f54
really make destuctors virtual in ODE/DAE base classes
John W. Eaton <jwe@octave.org>
parents:
10312
diff
changeset
|
58 virtual ~DAE (void) { } |
3 | 59 }; |
60 | |
61 #endif |