Changeset 1554 in Sophya for trunk/SophyaLib/TArray/tmatrix.cc


Ignore:
Timestamp:
Jun 27, 2001, 12:43:57 PM (24 years ago)
Author:
ansari
Message:

Oubli changement de l'interface TMatrix<T>::Print() - Reza 27/6/2001

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:10 ansari Exp $
     1// $Id: tmatrix.cc,v 1.20 2001-06-27 10:43:56 ansari Exp $
    22//                         C.Magneville          04/99
    33#include "machdefs.h"
     
    348348//! Print matrix
    349349/*!
     350  \param os : output stream
    350351  \param maxprt : maximum numer of print
    351352  \param si : if true,  display attached DvList
     353  \param ascd : if true, suppresses the display of line numbers,
     354  suitable for ascii dump format.
    352355  \sa SetMaxPrint
    353356 */
    354357template <class T>
    355 void TMatrix<T>::Print(ostream& os, int_4 maxprt, bool si) const
     358void TMatrix<T>::Print(ostream& os, int_4 maxprt, bool si, bool ascd) const
    356359{
    357360  if (maxprt < 0)  maxprt = max_nprt_;
     
    361364  sa_size_t kc,kr; 
    362365  for(kr=0; kr<size_[marowi_]; kr++) {
    363     if ( (size_[marowi_] > 1) && (size_[macoli_] > 10) ) cout << "----- Ligne Line= " << kr << endl;
     366    if ( (size_[marowi_] > 1) && (size_[macoli_] > 10) && ascd) cout << "----- Line= " << kr << endl;
    364367    for(kc=0; kc<size_[macoli_]; kc++) {
    365       if(kc > 0) os << ", "; 
     368      if(kc > 0) os << " "; 
    366369      os << (*this)(kr, kc);   npr++;
    367370      if (npr >= (sa_size_t) maxprt) {
Note: See TracChangeset for help on using the changeset viewer.