Revision 1921 trunk/src/linad99/imat2.cpp

imat2.cpp (revision 1921)
22 22
 */
23 23
 int& imatrix::operator() (int i,int j)
24 24
 {
25
   #ifdef SAFE_ARRAYS
26 25
   if (i < rowmin())
27 26
   {
28 27
     ADMB_ARRAY_BOUNDS_ERROR("matrix bound exceeded -- row index too low",
......
45 44
     "int& imatrix::operator() (int i, int j)",
46 45
     (*this)(i).indexmin(), (*this)(i).indexmax(), j);
47 46
   }
48
   #endif
49 47
   return(*((*(m+i)).v+j));
50 48
 }
51 49

  
......
55 53
 */
56 54
const int& imatrix::operator()(int i, int j) const
57 55
 {
58
   #ifdef SAFE_ARRAYS
59 56
     if (i<rowmin())
60 57
     {
61 58
       cerr << "matrix bound exceeded -- row index too low in "
......
84 81
            << "\nvalue was " << j << endl;
85 82
       ad_exit(22);
86 83
     }
87
   #endif
88 84
   return(*((*(m+i)).v+j));
89 85
 }
90 86
#endif

Also available in: Unified diff