Revision 172 tags/admb-10.1/src/linad99/fvar.hpp

fvar.hpp (revision 172)
3356 3356

  
3357 3357
#ifdef OPT_LIB
3358 3358
      inline dvector& operator() (register int i) { return m[i]; }
3359
      inline double& operator() (register int i, register int j) {return(*(m[i].v+j));}
3360 3359
      inline dvector& operator[] (register int i) { return m[i]; }
3361 3360
#else
3362
      double& operator() (int i, int j);
3363 3361
      dvector& operator() (int i);
3364 3362
      dvector& operator[] (int) ;
3365 3363
#endif
......
3367 3365
#ifdef USE_CONST
3368 3366
  #ifdef OPT_LIB
3369 3367
      inline _CONST dvector& operator() (register int i) _CONST { return m[i]; }
3370
      inline _CONST double& operator() (register int i, register int j) _CONST 
3371
      {return(*(m[i].v+j));}
3372 3368
      inline _CONST dvector& operator[] (register int i) _CONST  { return m[i]; }
3373 3369
#else
3374
      _CONST double& operator() (int i, int j) _CONST;
3375 3370
      _CONST dvector& operator() (int i) _CONST;
3376 3371
      _CONST dvector& operator[] (int)  _CONST;
3377 3372
  #endif
3378 3373
#endif
3379 3374

  
3375
#if defined(OPT_LIB) && !defined(__INTEL_COMPILER) 
3376
      inline double& operator() (register int i, register int j) {return(*(m[i].v+j));}
3377
      inline _CONST double& operator() (register int i, register int j) _CONST 
3378
      {return(*(m[i].v+j));}
3379
#else
3380
      double& operator() (int i, int j);
3381
      _CONST double& operator() (int i, int j) _CONST;
3382
#endif
3383

  
3380 3384
    inline dvector& elem(int i) { return( *(m+i) ); }
3381 3385
    inline double& elem(int i,int j) { return( *((*(m+i)).v+j) ); }
3382 3386
    #ifdef USE_CONST
......
3715 3719
  friend uistream& operator >> (BOR_CONST uistream&,BOR_CONST dfsdmat&);
3716 3720
  friend uostream& operator << (BOR_CONST uostream&,BOR_CONST dfsdmat&);
3717 3721

  
3718
  #if defined(OPT_LIB)
3722
  #if defined(OPT_LIB) && !defined(__INTEL_COMPILER)
3719 3723
    double& elem(int i,int j){ return *(m[i]+j);}
3720 3724
    double& operator () (int i,int j){ return *(m[i]+j);}
3721 3725
  #else

Also available in: Unified diff