Changeset 1554 in Sophya for trunk/SophyaLib/TArray/tmatrix.cc
- Timestamp:
- Jun 27, 2001, 12:43:57 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/TArray/tmatrix.cc
r1543 r1554 1 // $Id: tmatrix.cc,v 1. 19 2001-06-18 14:47:10ansari Exp $1 // $Id: tmatrix.cc,v 1.20 2001-06-27 10:43:56 ansari Exp $ 2 2 // C.Magneville 04/99 3 3 #include "machdefs.h" … … 348 348 //! Print matrix 349 349 /*! 350 \param os : output stream 350 351 \param maxprt : maximum numer of print 351 352 \param si : if true, display attached DvList 353 \param ascd : if true, suppresses the display of line numbers, 354 suitable for ascii dump format. 352 355 \sa SetMaxPrint 353 356 */ 354 357 template <class T> 355 void TMatrix<T>::Print(ostream& os, int_4 maxprt, bool si ) const358 void TMatrix<T>::Print(ostream& os, int_4 maxprt, bool si, bool ascd) const 356 359 { 357 360 if (maxprt < 0) maxprt = max_nprt_; … … 361 364 sa_size_t kc,kr; 362 365 for(kr=0; kr<size_[marowi_]; kr++) { 363 if ( (size_[marowi_] > 1) && (size_[macoli_] > 10) ) cout << "----- LigneLine= " << kr << endl;366 if ( (size_[marowi_] > 1) && (size_[macoli_] > 10) && ascd) cout << "----- Line= " << kr << endl; 364 367 for(kc=0; kc<size_[macoli_]; kc++) { 365 if(kc > 0) os << " ,";368 if(kc > 0) os << " "; 366 369 os << (*this)(kr, kc); npr++; 367 370 if (npr >= (sa_size_t) maxprt) {
Note:
See TracChangeset
for help on using the changeset viewer.