00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #if defined (__GNUG__) && defined (USE_PRAGMA_INTERFACE_IMPLEMENTATION)
00024 #pragma implementation
00025 #endif
00026
00027 #ifdef HAVE_CONFIG_H
00028 #include <config.h>
00029 #endif
00030
00031 #include <iostream>
00032
00033 #include "LinConst.h"
00034 #include "lo-error.h"
00035
00036
00037
00038 void
00039 LinConst::error (const char* msg)
00040 {
00041 (*current_liboctave_error_handler) ("fatal LinConst error: %s", msg);
00042 }
00043
00044 std::ostream&
00045 operator << (std::ostream& os, const LinConst& c)
00046 {
00047 for (int i = 0; i < c.size (); i++)
00048 os << c.lower_bound (i) << " " << c.upper_bound (i) << "\n";
00049
00050 os << "\n";
00051 os << c.constraint_matrix ();
00052
00053 return os;
00054 }
00055
00056
00057
00058
00059
00060