Revision 1921

trunk/src/linad99/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
trunk/src/linad99/dmat8.cpp (revision 1921)
19 19
 */
20 20
 dvector& dmatrix::operator() (int i)
21 21
 {
22
#  ifdef SAFE_ARRAYS
23 22
     if (i<rowmin())
24 23
     {
25 24
       ADMB_ARRAY_BOUNDS_ERROR("matrix bound exceeded -- row index too low",
......
30 29
       ADMB_ARRAY_BOUNDS_ERROR("matrix bound exceeded -- row index too high",
31 30
       "dvector& dmatrix::operator() (int i)", rowmin(), rowmax(), i);
32 31
     }
33
#  endif
34 32
   return *(m+i);
35 33
 }
36 34
#endif
......
42 40
 */
43 41
 double& dmatrix::operator() (int i, int j)
44 42
 {
45
#  ifdef SAFE_ARRAYS
46 43
     if (i<rowmin())
47 44
     {
48 45
       cerr << "matrix bound exceeded -- row index too low in "
......
75 72
             << "value was" << j;
76 73
       ad_exit(22);
77 74
     }
78
#  endif
79 75
   return( *((m[i]).v+j) );
80 76
 }
81 77

  
......
85 81
 */
86 82
const double& dmatrix::operator()(int i, int j) const
87 83
 {
88
#    ifdef SAFE_ARRAYS
89 84
     if (i<rowmin())
90 85
     {
91 86
       cerr << "matrix bound exceeded -- row index too low in "
......
118 113
             << "value was" << j;
119 114
       ad_exit(22);
120 115
     }
121
#    endif
122 116
   return( *((m[i]).v+j) );
123 117
 }
124 118
#endif
trunk/src/linad99/lmat4.cpp (revision 1921)
20 20
 * Description not yet available.
21 21
 * \param
22 22
 */
23
 lvector& lmatrix::operator[] (int i)
23
lvector& lmatrix::operator[](int i)
24 24
 {
25
   #ifdef SAFE_ARRAYS
26 25
   if (i < rowmin())
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff