src/HSLib/GenOp.cc
/* This set of functions insures that the Op limits are met, Op element access
   is within matrix representation bounds, etc.  These will issue non-fatal
   warnings and continue on.                                                 */
This set of functions insures that the Op limits are met, Op element access
is within matrix representation bounds, etc.  These will issue non-fatal
warnings and continue on.
This set of functions insures that the Op limits are met Op element access is within matrix representation bounds etc . These will issue non - fatal warnings and continue on .
int gen_op::OpCheck(int row, int col, int warn) const
  {
  int TF=1;
  if(row<0 || row>=dim()) TF*=0;	
  if(col<0 || col>=dim()) TF*=0;	
  if(TF) return 1;
  if(warn)
    {
    if(warn > 1) GenOpfatality(56);
    else         GenOperror(56,1);
    }
  return 0;
  }
int gen_op :: OpCheck ( int row , int col , int warn ) const { int TF = 1 ; if ( row < 0 || row >= dim ( ) ) TF *= 0 ; if ( col < 0 || col >= dim ( ) ) TF *= 0 ; if ( TF ) return 1 ; if ( warn ) { if ( warn > 1 ) GenOpfatality ( 56 ) ; else GenOperror ( 56 , 1 ) ; } return 0 ; }
This set of functions insures that the Op limits are met, Op element access
is within matrix representation bounds, etc.
This set of functions insures that the Op limits are met Op element access is within matrix representation bounds etc .
// Check row index // Check col index