ADMB Documentation  11.5.3197
 All Classes Files Functions Variables Typedefs Friends Defines
fvar_ma8.cpp
Go to the documentation of this file.
00001 /*
00002  * $Id$
00003  *
00004  * Author: David Fournier
00005  * Copyright (c) 2008-2012 Regents of the University of California
00006  */
00011 //#undef OPT_LIB
00012 #include "fvar.hpp"
00013 
00014 #if !defined(OPT_LIB)
00015 
00020  dvar_vector& dvar_matrix::operator() (int i)
00021  {
00022      if (i<rowmin())
00023      {
00024        cerr << "matrix bound exceeded -- row index too low in "
00025        "dvar_matrix::operator()" << "value was" << i << endl;
00026        ad_exit(21);
00027      }
00028      if (i>rowmax())
00029      {
00030        cerr << "matrix bound exceeded -- row index too high in "
00031        "dvar_matrix::operator()" << "value was" << i << endl;
00032        ad_exit(22);
00033      }
00034    return m[i];
00035  }
00036 #endif