Changeset 2798 in Sophya for trunk/Eval/JET/jet.h


Ignore:
Timestamp:
Jun 4, 2005, 12:05:35 AM (20 years ago)
Author:
ansari
Message:

Adaptation aux modifs 2004-2005 de SOPHYA , compil pour PBG4 - Reza 3 Juin 2005

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Eval/JET/jet.h

    r2366 r2798  
    33
    44#include "machdefs.h"
     5#include "sopnamsp.h"
     6
     7
    58
    69//========================================================
     
    1922  ~MtxSize() {};
    2023  void ReSize(const MtxSize  & a) { nrow_ = a.nrow_;  ncol_ = a.ncol_; }
    21   bool CompareSize(const MtxSize & a) const ;
     24  bool CompareSize(const MtxSize & a) const
     25{
     26  if ((a.nrow_ == 0) || (a.ncol_ == 0) )
     27    throw RangeCheckError("MtxSize::CompareSize(mx) Size(mx) = 0");
     28  if ((nrow_ == a.nrow_) && (ncol_ == a.ncol_))  return true;
     29  else return false;
     30}
    2231protected:
    2332  sa_size_t nrow_, ncol_;
Note: See TracChangeset for help on using the changeset viewer.