ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
f3arr18.cpp
Go to the documentation of this file.
1 /*
2  * $Id$
3  *
4  * Author: David Fournier
5  * Copyright (c) 2008-2012 Regents of the University of California
6  */
11 #include "fvar.hpp"
12 #ifndef OPT_LIB
13 
18 const dvar_matrix& dvar3_array::operator()(int i) const
19  {
20  if (i<slicemin())
21  {
22  cerr << "matrix bound exceeded -- row index too low in "
23  "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 "
30  "3d_array::operator[]"
31  << "value was" << i;
32  ad_exit(22);
33  }
34  return( t[i]);
35  }
36 #endif
int slicemin() const
Definition: fvar.hpp:4274
int slicemax() const
Definition: fvar.hpp:4275
exitptr ad_exit
Definition: gradstrc.cpp:53
dvar_matrix * t
Definition: fvar.hpp:4199
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
const prevariable operator()(int k, int i, int j) const
Definition: fvar.hpp:4343
Class definition of matrix with derivitive information .
Definition: fvar.hpp:2480