3
|
1 // NLConst.cc -*- 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 |
238
|
24 #ifdef HAVE_CONFIG_H |
1192
|
25 #include <config.h> |
3
|
26 #endif |
|
27 |
|
28 #include "NLConst.h" |
|
29 |
|
30 NLConst::NLConst (void) : Bounds (), NLFunc () |
|
31 { |
|
32 } |
|
33 |
|
34 NLConst::NLConst (int n) : Bounds (n), NLFunc () |
|
35 { |
|
36 } |
|
37 |
465
|
38 NLConst::NLConst (const Vector& l, const NLFunc f, const Vector& u) |
3
|
39 : Bounds (l, u), NLFunc (f) |
|
40 { |
|
41 } |
|
42 |
|
43 NLConst::NLConst (const NLConst& a) |
|
44 : Bounds (a.lb, a.ub), NLFunc (a.fun, a.jac) |
|
45 { |
|
46 } |
|
47 |
|
48 NLConst& |
|
49 NLConst::operator = (const NLConst& a) |
|
50 { |
|
51 nb = a.nb; |
|
52 lb = a.lb; |
|
53 fun = a.fun; |
|
54 jac = a.jac; |
|
55 ub = a.ub; |
|
56 |
|
57 return *this; |
|
58 } |
|
59 |
|
60 /* |
|
61 ;;; Local Variables: *** |
|
62 ;;; mode: C++ *** |
|
63 ;;; page-delimiter: "^/\\*" *** |
|
64 ;;; End: *** |
|
65 */ |