Statistics
| Revision:

root / trunk / src / linad99 / f3arr19.cpp @ 1131

History | View | Annotate | Download (722 Bytes)

1
/*
2
 * $Id: f3arr19.cpp 1131 2013-08-02 22:51:34Z 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
#ifndef OPT_LIB
13

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