3
|
1 /* |
|
2 |
2847
|
3 Copyright (C) 1996, 1997 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 |
|
9 Free Software Foundation; either version 2, or (at your option) any |
|
10 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, write to the Free |
1315
|
19 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
3
|
20 |
|
21 */ |
|
22 |
238
|
23 #ifdef HAVE_CONFIG_H |
1192
|
24 #include <config.h> |
3
|
25 #endif |
|
26 |
3503
|
27 #include <iostream> |
238
|
28 |
3
|
29 #include "LinConst.h" |
227
|
30 #include "lo-error.h" |
3
|
31 |
|
32 // error handling |
|
33 |
|
34 void |
|
35 LinConst::error (const char* msg) |
|
36 { |
227
|
37 (*current_liboctave_error_handler) ("fatal LinConst error: %s", msg); |
3
|
38 } |
|
39 |
3504
|
40 std::ostream& |
|
41 operator << (std::ostream& os, const LinConst& c) |
3
|
42 { |
5275
|
43 for (octave_idx_type i = 0; i < c.size (); i++) |
3
|
44 os << c.lower_bound (i) << " " << c.upper_bound (i) << "\n"; |
|
45 |
|
46 os << "\n"; |
|
47 os << c.constraint_matrix (); |
|
48 |
|
49 return os; |
|
50 } |
|
51 |
|
52 /* |
|
53 ;;; Local Variables: *** |
|
54 ;;; mode: C++ *** |
|
55 ;;; End: *** |
|
56 */ |