Revision 1921 trunk/src/linad99/imat4.cpp

imat4.cpp (revision 1921)
22 22
 */
23 23
 ivector& imatrix::operator[] (int i)
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",
......
33 32
     ADMB_ARRAY_BOUNDS_ERROR("matrix bound exceeded -- row index too high",
34 33
     "ivector& imatrix::operator[] (int i)", rowmin(), rowmax(), i);
35 34
   }
36
   #endif
37 35
   return m[i];
38 36
 }
39 37

  
......
43 41
 */
44 42
const ivector& imatrix::operator[](int i) const
45 43
 {
46
   #ifdef SAFE_ARRAYS
47 44
     if (i<rowmin())
48 45
     {
49 46
       cerr << "matrix bound exceeded -- row index too low in "
......
56 53
       "imatrix::operator[]" << "value was" << i;
57 54
       ad_exit(22);
58 55
     }
59
   #endif
60 56
   return m[i];
61 57
 }
62 58
#endif

Also available in: Unified diff