ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
fvar_ma8.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 //#undef OPT_LIB
12 #include "fvar.hpp"
13 
14 #if !defined(OPT_LIB)
15 
21  {
22  if (i<rowmin())
23  {
24  cerr << "matrix bound exceeded -- row index too low in "
25  "dvar_matrix::operator()" << "value was" << i << endl;
26  ad_exit(21);
27  }
28  if (i>rowmax())
29  {
30  cerr << "matrix bound exceeded -- row index too high in "
31  "dvar_matrix::operator()" << "value was" << i << endl;
32  ad_exit(22);
33  }
34  return m[i];
35  }
36 #endif
int rowmax(void) const
Definition: fvar.hpp:2564
exitptr ad_exit
Definition: gradstrc.cpp:53
ADMB variable vector.
Definition: fvar.hpp:2172
prnstream & endl(prnstream &)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
int rowmin(void) const
Definition: fvar.hpp:2560
dvar_vector & operator()(int i)
Definition: fvar.hpp:2776
dvar_vector * m
Definition: fvar.hpp:2484