ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
dmat32.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 #if !defined(OPT_LIB)
13 
17 const dvector& dmatrix::operator()(int i) const
18  {
19  if (i<rowmin())
20  {
21  cerr << "matrix bound exceeded -- row index too low in "
22  "dmatrix::operator()" << "value was" << i;
23  ad_exit(21);
24  }
25  if (i>rowmax())
26  {
27  cerr << "matrix bound exceeded -- row index too high in "
28  "dmatrix::operator()" << "value was" << i;
29  ad_exit(22);
30  }
31  return *(m+i);
32  }
33 #endif
dvector & operator()(int i)
Definition: fvar.hpp:3083
Vector of double precision numbers.
Definition: dvector.h:50
exitptr ad_exit
Definition: gradstrc.cpp:53
int rowmax() const
Definition: fvar.hpp:2929
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
dvector * m
Definition: fvar.hpp:2824
int rowmin() const
Definition: fvar.hpp:2925