Homepage | Demos | Overview | Downloads | Tutorials | Reference | Credits |
newmatio.hGo to the documentation of this file.00001 //$$ newmatio.h definition file for matrix package input/output 00002 00003 // Copyright (C) 1991,2,3,4: R B Davies 00004 00005 #ifndef NEWMATIO_LIB 00006 #define NEWMATIO_LIB 0 00007 00008 #ifndef WANT_STREAM 00009 #define WANT_STREAM 00010 #endif 00011 00012 #include "newmat.h" 00013 00014 #ifdef use_namespace 00015 namespace NEWMAT { 00016 #endif 00017 00018 00019 00020 /**************************** input/output *****************************/ 00021 00022 ostream& operator<<(ostream&, const BaseMatrix&); 00023 00024 ostream& operator<<(ostream&, const GeneralMatrix&); 00025 00026 /**************************** Matlab-code printer *****************************/ 00027 00028 class printmat { 00029 public: 00030 const Matrix &mat; 00031 printmat(const Matrix &m) : mat(m) {} 00032 }; 00033 00034 ostream& operator<<(ostream&, const printmat&); 00035 00036 /**************************** Old stuff *****************************/ 00037 00038 /* Use in some old versions of G++ without complete iomanipulators 00039 00040 class Omanip_precision 00041 { 00042 int x; 00043 public: 00044 Omanip_precision(int i) : x(i) {} 00045 friend ostream& operator<<(ostream& os, Omanip_precision i); 00046 }; 00047 00048 00049 Omanip_precision setprecision(int i); 00050 00051 class Omanip_width 00052 { 00053 int x; 00054 public: 00055 Omanip_width(int i) : x(i) {} 00056 friend ostream& operator<<(ostream& os, Omanip_width i); 00057 }; 00058 00059 Omanip_width setw(int i); 00060 00061 */ 00062 00063 #ifdef use_namespace 00064 } 00065 #endif 00066 00067 00068 00069 #endif 00070 00071 // body file: newmat9.cpp 00072 |
newmat11b |
Generated Tue Jan 4 15:42:11 2005 by Doxygen 1.4.0 |