src/Matrix/matrix.cc
/*      Input                   mx      : A marix (this)
                                eidx    : Error index
                                noret   : Flag for linefeed (0=linefeed)
                                pname   : string in message
        Output                  none    : Error message output
                                          Program execution stopped if fatal

  The following error messages use the defaults set in the Gutils package

                Case                          Error Message                

                (0)                     Program Aborting.....
                (9)                     Problems During Construction
                default                 Unknown Error                                      

                (1)                     Problems With File PNAME
                (2)                     Cannot Read Parameter PNAME
                (3)                     Invalid Use Of Function PNAME
                default                 Unknown Error - PNAME                */


The following error messages use the defaults set in the Gutils package

Case                          Error Message

(0)                     Program Aborting
(9)                     Problems During Construction
default                 Unknown Error

(1)                     Problems With File PNAME
(2)                     Cannot Read Parameter PNAME
(3)                     Invalid Use Of Function PNAME
default                 Unknown Error - PNAME
The following error messages use the defaults set in the Gutils package Case Error Message ( 0 ) Program Aborting ( 9 ) Problems During Construction default Unknown Error ( 1 ) Problems With File PNAME ( 2 ) Cannot Read Parameter PNAME ( 3 ) Invalid Use Of Function PNAME default Unknown Error - PNAME
void matrix::Mxerror(int eidx, int noret) const 
  {
  std::string hdr("Matrix");
  std::string msg;
  switch (eidx)
    {
    case 6:  MxModError(hdr,"Bad Internal Component Access",noret);break;
    case 7:  MxModError(hdr,"Accessing Empty Operator",noret);    break;
    case 20: MxModError(hdr,"Unable To Perform Addition",noret);  break;
    case 28: MxModError(hdr,"Non-Square Diagonalization",noret);  break;
    case 30: MxModError(hdr,"Failed Requested Operation",noret);  break;
    case 40: MxModError(hdr,"FFT Still on Vectors Only", noret);  break;
    case 41: MxModError(hdr,"Base 2 FFT, Needs 2^N Pts", noret);  break;
    case 42: MxModError(hdr,"Base 2 IFFT, Needs 2^N Pts", noret); break;
    case 49: MxModError(hdr,"Cannot Set Hermitian Type",  noret); break;
    case 50: MxModError(hdr,"Cannot Set Matrix Type",     noret); break;
    case 51: MxModError(hdr,"Matrix Dimension Trouble",   noret); break;
    case 52: MxModError(hdr,"Cant Read From Binary File", noret); break;
    case 53: MxModError(hdr,"Element Size Mismatch",      noret); break;
    default: MxModError(hdr, eidx, noret); break;
    }
  }
void matrix :: Mxerror ( int eidx , int noret ) const { std :: string hdr ( " " ) ; std :: string msg ; switch ( eidx ) { case 6 : MxModError ( hdr , " " , noret ) ; break ; case 7 : MxModError ( hdr , " " , noret ) ; break ; case 20 : MxModError ( hdr , " " , noret ) ; break ; case 28 : MxModError ( hdr , " " , noret ) ; break ; case 30 : MxModError ( hdr , " " , noret ) ; break ; case 40 : MxModError ( hdr , " " , noret ) ; break ; case 41 : MxModError ( hdr , " " , noret ) ; break ; case 42 : MxModError ( hdr , " " , noret ) ; break ; case 49 : MxModError ( hdr , " " , noret ) ; break ; case 50 : MxModError ( hdr , " " , noret ) ; break ; case 51 : MxModError ( hdr , " " , noret ) ; break ; case 52 : MxModError ( hdr , " " , noret ) ; break ; case 53 : MxModError ( hdr , " " , noret ) ; break ; default : MxModError ( hdr , eidx , noret ) ; break ; } }
Input                   mx      : A marix (this)
eidx    : Error index
noret   : Flag for linefeed (0=linefeed)
pname   : string in message
Output                  none    : Error message output
Program execution stopped if fatal
Input mx : A marix ( this ) eidx : Error index noret : Flag for linefeed ( 0 = linefeed ) pname : string in message Output none : Error message output Program execution stopped if fatal
//(6) // (7) // (20) // (28) // (30) // (40) // (41) // (42) // (49) // (50) // (51) // (52) // (53) // Usually Unknown Error  (-1)