Statistics
| Revision:

root / branches / pthreads-737 / src / linad99 / d3arr11.cpp @ 765

History | View | Annotate | Download (790 Bytes)

1
/*
2
 * $Id: d3arr11.cpp 542 2012-07-10 21:04:06Z johnoel $
3
 *
4
 * Author: David Fournier
5
 * Copyright (c) 2008-2012 Regents of the University of California 
6
 */
7
/**
8
 * \file
9
 * Description not yet available.
10
 */
11
#include "fvar.hpp"
12
#ifdef USE_CONST
13
  #ifndef OPT_LIB 
14

    
15
/**
16
 * Description not yet available.
17
 * \param
18
 */
19
const dmatrix& d3_array::operator()(int i) const
20
 {
21
   #ifdef SAFE_ARRAYS
22
     if (i<slicemin())
23
     {
24
       cerr << "matrix bound exceeded -- row index too low in 3d_array::operator[]"
25
             << "value was" << i;
26
       ad_exit(21);
27
     }
28
     if (i>slicemax())
29
     {
30
       cerr << "matrix bound exceeded -- row index too high in 3d_array::operator[]"
31
             << "value was" << i;
32
       ad_exit(22);
33
     }
34
   #endif
35
   return(t[i]);
36
 }
37
  #endif
38
#endif