ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
d3arr11.cpp
Go to the documentation of this file.
1 
5 #include "fvar.hpp"
6 
7 #ifndef OPT_LIB
8 
13 const dmatrix& d3_array::operator()(int i) const
14 {
15  if (i < slicemin())
16  {
17  cerr << "matrix bound exceeded"
18  << " -- row index too low in 3d_array::operator[]"
19  << "value was" << i;
20  ad_exit(1);
21  }
22  if (i > slicemax())
23  {
24  cerr << "matrix bound exceeded"
25  << " -- row index too high in 3d_array::operator[]"
26  << "value was" << i;
27  ad_exit(1);
28  }
29  return t[i];
30 }
31 #endif
exitptr ad_exit
Definition: gradstrc.cpp:53
dmatrix * t
Definition: fvar.hpp:3729
int slicemax() const
Definition: fvar.hpp:3830
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
int slicemin() const
Definition: fvar.hpp:3826
Description not yet available.
Definition: fvar.hpp:2819
double & operator()(int k, int i, int j)
Definition: fvar.hpp:3922