00001 /*************************************************************************** 00002 numvectorprint.h - description 00003 ------------------- 00004 begin : Fri May 12 2000 00005 copyright : (C) 2000 by Michael Peeters 00006 email : Michael.Peeters@vub.ac.be 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef NUMVECTORPRINT_H 00019 #define NUMVECTORPRINT_H 00020 00021 #include "numerictraits.h" 00022 #include <iostream> 00023 00024 using namespace MODEL; 00025 00028 // Previously: template<integer dims, class NT> 00029 template <integer dims, typename nelem,class NT> 00030 std::ostream& operator<<(std::ostream& out,const NumVector<dims,nelem,NT>& vprint) 00031 { 00032 //out << " | "; 00033 for (integer i=0;i<(dims-1);i++) out<< vprint[i] <<"\t"; 00034 out<< vprint[dims-1]; 00035 //out << ")"; 00036 return out; 00037 } 00038 00040 // Previously:template<integer dims, class NT> 00041 template <integer dims, typename nelem,class NT> 00042 std::ostream& operator<<( std::ostream& out, 00043 const NumVector<dims,NumVector<dims,nelem,NT>,NT >& vprint) 00044 { 00045 //out << " | "; 00046 for (integer i=0;i<(dims-1);i++) out<< vprint[i] <<endl; 00047 out<< vprint[dims-1]; 00048 //out << ")"; 00049 return out; 00050 } 00051 00052 #endif 00053 00054 /********************************************************************* 00055 $Id: numvectorprint.h,v 1.1.2.1 2002/02/06 12:49:39 mpeeters Exp $ 00056 ********************************************************************** 00057 00058 $Log: numvectorprint.h,v $ 00059 Revision 1.1.2.1 2002/02/06 12:49:39 mpeeters 00060 Altered interface to make fudging easier. Will be reverted. 00061 00062 Revision 1.1 2001/05/22 10:54:55 mpeeters 00063 Moved sources and headers for libModel to model/ subdirectory, in an attempt to rationalize the source tree. This should make things "netter". 00064 00065 Revision 1.3 2000/09/22 08:51:45 mpeeters 00066 Added NumericTraits NT template parameter to all declarations and 00067 definitions. Not really needed, but cleaner this way. 00068 00069 Revision 1.2 2000/09/15 10:26:31 mpeeters 00070 Cleaned out header and added CVS tails to files, removed superfuous 00071 @author comments, inserted dates 00072 00073 *********************************************************************/
More Info? Michael Peeters. Also, check our research website: www.alna.vub.ac.be
Last update: June 2002.