Revision 1921 trunk/src/linad99/lmat2.cpp

lmat2.cpp (revision 1921)
20 20
 * Description not yet available.
21 21
 * \param
22 22
 */
23
 AD_LONG_INT& lmatrix::operator() (int i,int j)
23
AD_LONG_INT& lmatrix::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
     "AD_LONG_INT& lmatrix::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 AD_LONG_INT& lmatrix::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 "
......
80 77
       "lmatrix::operator()(int, int)" << "\nvalue was " << j;
81 78
       ad_exit(22);
82 79
     }
83
   #endif
84 80
   return(*((*(m+i)).v+j));
85 81
 }
86 82
#endif

Also available in: Unified diff