Revision 1921 trunk/src/linad99/i3arr8.cpp

i3arr8.cpp (revision 1921)
19 19
 */
20 20
const int& i3_array::operator()(int k, int i, int j) const
21 21
    {
22
      #ifdef SAFE_ARRAYS
23 22
        if (k<slicemin())
24 23
        {
25 24
          cerr << "array bound exceeded -- slice index too low in "
......
32 31
          "i3_array::operator(int,int)";
33 32
          ad_exit(1);
34 33
        }
35
      #endif
36 34
      return ( (elem(k))(i,j) );
37 35
    }
38 36

  
......
42 40
 */
43 41
const ivector& i3_array::operator()(int k, int i) const
44 42
    {
45
      #ifdef SAFE_ARRAYS
46 43
        if (k<slicemin())
47 44
        {
48 45
          cerr << "array bound exceeded -- slice index too low in "
......
55 52
          "i3_array::operator(int,int)";
56 53
          ad_exit(1);
57 54
        }
58
      #endif
59 55
      return ( (elem(k))(i) );
60 56
    }
61 57

  
......
65 61
 */
66 62
const imatrix& i3_array::operator[](int i) const
67 63
 {
68
   #ifdef SAFE_ARRAYS
69 64
     if (i<slicemin())
70 65
     {
71 66
       cerr << "matrix bound exceeded -- row index too low in "
......
80 75
             << "value was" << i;
81 76
       ad_exit(22);
82 77
     }
83
   #endif
84 78
   return(t[i]);
85 79
 }
86 80

  
......
90 84
 */
91 85
const imatrix& i3_array::operator()(int i) const
92 86
 {
93
   #ifdef SAFE_ARRAYS
94 87
     if (i<slicemin())
95 88
     {
96 89
       cerr << "matrix bound exceeded -- row index too low in "
......
105 98
             << "value was" << i;
106 99
       ad_exit(22);
107 100
     }
108
   #endif
109 101
   return(t[i]);
110 102
 }
111 103
#endif

Also available in: Unified diff