Changeset 181148 in git for factory/templates/ftmpl_matrix.h
- Timestamp:
- May 15, 2006, 11:03:07 AM (18 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- f0daaa2ae00a1c211020bcbe4eca9c6fe7947a71
- Parents:
- 1dc6163f5dbd22ee9839decb93a02494ac071aca
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/templates/ftmpl_matrix.h
r1dc616 r181148 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: ftmpl_matrix.h,v 1.1 2 2006-05-15 08:17:57 Singular Exp $ */2 /* $Id: ftmpl_matrix.h,v 1.13 2006-05-15 09:03:07 Singular Exp $ */ 3 3 4 4 #ifndef INCL_MATRIX_H … … 10 10 #ifdef HAVE_IOSTREAM 11 11 #include <iostream> 12 #define OSTREAM std::ostream 12 13 #elif defined(HAVE_IOSTREAM_H) 13 14 #include <iostream.h> 15 #define OSTREAM ostream 14 16 #endif 15 17 #endif /* NOSTREAMIO */ … … 23 25 #ifndef NOSTREAMIO 24 26 template <class T> 25 ostream& operator<< (ostream&, const Matrix<T> &);27 OSTREAM& operator<< (OSTREAM &, const Matrix<T> &); 26 28 #endif 27 29 … … 33 35 T ** elems; 34 36 #ifndef NOSTREAMIO 35 void printrow ( ostream& s, int i ) const;37 void printrow ( OSTREAM & s, int i ) const; 36 38 #endif /* NOSTREAMIO */ 37 39 typedef T* T_ptr; … … 53 55 void swapColumn( int i, int j ); 54 56 #ifndef NOSTREAMIO 55 void print( ostream& s ) const;56 friend ostream & operator<< <T>( ostream& s, const Matrix<T>& M );57 void print( OSTREAM& s ) const; 58 friend OSTREAM & operator<< <T>( OSTREAM & s, const Matrix<T>& M ); 57 59 #endif /* NOSTREAMIO */ 58 60 friend class SubMatrix<T>; … … 89 91 #ifndef NOSTREAMIO 90 92 template <class T> 91 ostream & operator<< ( ostream& s, const Matrix<T>& M );93 OSTREAM & operator<< ( OSTREAM & s, const Matrix<T>& M ); 92 94 #endif /* NOSTREAMIO */ 93 95
Note: See TracChangeset
for help on using the changeset viewer.