3
|
1 // NLConst.h -*- C++ -*- |
|
2 /* |
|
3 |
1011
|
4 Copyright (C) 1992, 1993, 1994, 1995 John W. Eaton |
3
|
5 |
|
6 This file is part of Octave. |
|
7 |
|
8 Octave is free software; you can redistribute it and/or modify it |
|
9 under the terms of the GNU General Public License as published by the |
|
10 Free Software Foundation; either version 2, or (at your option) any |
|
11 later version. |
|
12 |
|
13 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
16 for more details. |
|
17 |
|
18 You should have received a copy of the GNU General Public License |
|
19 along with Octave; see the file COPYING. If not, write to the Free |
|
20 Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
|
21 |
|
22 */ |
|
23 |
382
|
24 #if !defined (octave_NLConst_h) |
|
25 #define octave_NLConst_h 1 |
|
26 |
465
|
27 class ColumnVector; |
|
28 |
238
|
29 #include "Bounds.h" |
3
|
30 #include "NLFunc.h" |
|
31 |
384
|
32 extern "C++" { |
|
33 |
3
|
34 #ifndef Vector |
|
35 #define Vector ColumnVector |
|
36 #endif |
|
37 |
|
38 class NLConst : public Bounds, public NLFunc |
|
39 { |
|
40 public: |
|
41 |
|
42 NLConst (void); |
|
43 NLConst (int n); |
465
|
44 NLConst (const Vector& lb, const NLFunc f, const Vector& ub); |
3
|
45 NLConst (const NLConst& a); |
|
46 |
|
47 NLConst& operator = (const NLConst& a); |
|
48 |
|
49 private: |
|
50 |
|
51 void error (const char *msg); |
|
52 |
|
53 }; |
|
54 |
382
|
55 } // extern "C++" |
|
56 |
3
|
57 #endif |
|
58 |
|
59 /* |
|
60 ;;; Local Variables: *** |
|
61 ;;; mode: C++ *** |
|
62 ;;; page-delimiter: "^/\\*" *** |
|
63 ;;; End: *** |
|
64 */ |