Statistics
| Revision:

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

History | View | Annotate | Download (668 Bytes)

1
/*
2
 * $Id: d3arr11.cpp 1921 2014-04-23 18:47:05Z 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
  if (i<slicemin())
20
  {
21
    cerr << "matrix bound exceeded"
22
         << " -- 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"
29
         << " -- row index too high in 3d_array::operator[]"
30
         << "value was" << i;
31
    ad_exit(22);
32
  }
33
  return t[i];
34
}
35
#endif