Statistics
| Revision:

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

History | View | Annotate | Download (664 Bytes)

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