src/HSLib/GenOp.cc
// Input		Op    : General operator (this)
// Output		void  : Outputs operator status
Input          Op    : General operator (this)
Output         void  : Outputs operator status
Input Op : General operator ( this ) Output void : Outputs operator status
void gen_op::status(int pf) const
  {
  int nreps = size();
  std::cout << "\n\tCurrent Number of Representations: " << nreps;
  int spaces = 0;
  std::vector<genoprep>::const_iterator item;
  item = begin(); 			
  const genoprep* REP = ObeginC();
  for(int i=0; i<nreps; i++)
    {
    std::cout << "\n\tRep " << i+1 << "- priority = " << REP->RepPty;
    spaces++;
    if(REP->RepPty > 9)  spaces++;
    if(REP->RepPty > 99) spaces++;
    for(int j=spaces; j<3; j++) std::cout << " "; 
    if(REP == WBR) std::cout << " (WBR)";
    if(REP == DBR) std::cout << " (DBR)";
    if(REP == EBR) std::cout << " (EBR)";
    std::cout << "\n\t     - matrix = " << REP->RepMx.refs() << " refs";
    switch((REP->RepMx).stored_type())
      {
      case i_matrix_type: std::cout << ", Identity Matrix";  break;
      case d_matrix_type: std::cout << ", Diagonal Matrix";  break;
      case h_matrix_type: std::cout << ", Hermitian Matrix"; break;
      case n_matrix_type: std::cout << ", Complex Matrix";   break;
      default:            std::cout << ", Generic Matrix";   break;
      }
    switch((REP->RepMx).stored_type())
      {
      case h_matrix_type: 				             break;
      case i_matrix_type:
      case d_matrix_type:
      case n_matrix_type:
        if((REP->RepMx).test_hermitian()) std::cout << ", Hermitian"; 
        else                              std::cout << ", Non-Hermitian"; break;
      default:                            std::cout << ", Non-Hermitian"; break;
      }
    std::cout << "\n\t     - basis  = " << (REP->RepBs).refs() << " refs";
    switch(((REP->RepBs).U()).stored_type())      {
      case i_matrix_type: std::cout << ", Identity Matrix";  break;
      case d_matrix_type: std::cout << ", Diagonal Matrix";  break;
      case h_matrix_type: std::cout << ", Hermitian Matrix"; break;
      case n_matrix_type: std::cout << ", Complex Matrix";   break;
      default:            std::cout << ", Generic Matrix";   break;
      }
    switch(((REP->RepBs).U()).stored_type())      {
      case h_matrix_type: 				             break;
      case i_matrix_type:
      case d_matrix_type:
      case n_matrix_type:
        if((REP->RepMx).test_hermitian()) std::cout << ", Hermitian";
        else                              std::cout << ", Non-Hermitian"; break;
      default:                            std::cout << ", Non-Hermitian"; break;
      }
    REP++;
    item++;
    }
  if(pf)
    {
    REP = ObeginC();
    std::string rn;
    for(int k=0; k<nreps; k++)
      {
      rn = "Representation " + Gdec(k);
      std::cout << "\n\n" << CenterString(rn) << "\n";
      REP->print(std::cout);
      REP++;
      }
    }
  std::cout << "\n";
  }
void gen_op :: status ( int pf ) const { int nreps = size ( ) ; std :: cout << " \n \t " << nreps ; int spaces = 0 ; std :: vector < genoprep > :: const_iterator item ; item = begin ( ) ; const genoprep * REP = ObeginC ( ) ; for ( int i = 0 ; i < nreps ; i ++ ) { std :: cout << " \n \t " << i + 1 << " " << REP -> RepPty ; spaces ++ ; if ( REP -> RepPty > 9 ) spaces ++ ; if ( REP -> RepPty > 99 ) spaces ++ ; for ( int j = spaces ; j < 3 ; j ++ ) std :: cout << " " ; if ( REP == WBR ) std :: cout << " " ; if ( REP == DBR ) std :: cout << " " ; if ( REP == EBR ) std :: cout << " " ; std :: cout << " \n \t " << REP -> RepMx . refs ( ) << " " ; switch ( ( REP -> RepMx ) . stored_type ( ) ) { case i_matrix_type : std :: cout << " " ; break ; case d_matrix_type : std :: cout << " " ; break ; case h_matrix_type : std :: cout << " " ; break ; case n_matrix_type : std :: cout << " " ; break ; default : std :: cout << " " ; break ; } switch ( ( REP -> RepMx ) . stored_type ( ) ) { case h_matrix_type : break ; case i_matrix_type : case d_matrix_type : case n_matrix_type : if ( ( REP -> RepMx ) . test_hermitian ( ) ) std :: cout << " " ; else std :: cout << " " ; break ; default : std :: cout << " " ; break ; } std :: cout << " \n \t " << ( REP -> RepBs ) . refs ( ) << " " ; switch ( ( ( REP -> RepBs ) . U ( ) ) . stored_type ( ) ) { case i_matrix_type : std :: cout << " " ; break ; case d_matrix_type : std :: cout << " " ; break ; case h_matrix_type : std :: cout << " " ; break ; case n_matrix_type : std :: cout << " " ; break ; default : std :: cout << " " ; break ; } switch ( ( ( REP -> RepBs ) . U ( ) ) . stored_type ( ) ) { case h_matrix_type : break ; case i_matrix_type : case d_matrix_type : case n_matrix_type : if ( ( REP -> RepMx ) . test_hermitian ( ) ) std :: cout << " " ; else std :: cout << " " ; break ; default : std :: cout << " " ; break ; } REP ++ ; item ++ ; } if ( pf ) { REP = ObeginC ( ) ; std :: string rn ; for ( int k = 0 ; k < nreps ; k ++ ) { rn = " " + Gdec ( k ) ; std :: cout << " \n \n " << CenterString ( rn ) << " \n " ; REP -> print ( std :: cout ) ; REP ++ ; } } std :: cout << " \n " ; }
Input          Op    : General operator (this)
Output         void  : Outputs operator status
Input Op : General operator ( this ) Output void : Outputs operator status
// Iterator into list // The 1st OpRep in list //    switch((((const matrix&)REP->RepBs)).stored_type()) //    switch(((const matrix&)(REP->RepBs)).stored_type())