ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
fvar_m48.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 
20 const dvar_vector& dvar_matrix::operator()(int i) const
21  {
22  if (i<rowmin())
23  {
24  cerr << "matrix bound exceeded -- row index too low in "
25  "dvar_matrix::operator()"
26  << "value was" << i << endl;
27  ad_exit(21);
28  }
29  if (i>rowmax())
30  {
31  cerr << "matrix bound exceeded -- row index too high in "
32  "dvar_matrix::operator()"
33  << "value was" << i << endl;
34  ad_exit(22);
35  }
36  return m[i];
37  }
38 #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