ADMB Documentation  11.5.3197
 All Classes Files Functions Variables Typedefs Friends Defines
dmat32.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 #include "fvar.hpp"
00012 #if !defined(OPT_LIB)
00013 
00017 const dvector& dmatrix::operator()(int i) const
00018  {
00019      if (i<rowmin())
00020      {
00021        cerr << "matrix bound exceeded -- row index too low in "
00022        "dmatrix::operator()" << "value was" << i;
00023        ad_exit(21);
00024      }
00025      if (i>rowmax())
00026      {
00027        cerr << "matrix bound exceeded -- row index too high in "
00028        "dmatrix::operator()" << "value was" << i;
00029        ad_exit(22);
00030      }
00031    return *(m+i);
00032  }
00033 #endif