ADMB Documentation  11.5.3197
 All Classes Files Functions Variables Typedefs Friends Defines
d3arr11.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 #ifndef OPT_LIB
00013 
00017 const dmatrix& d3_array::operator()(int i) const
00018 {
00019   if (i<slicemin())
00020   {
00021     cerr << "matrix bound exceeded"
00022          << " -- row index too low in 3d_array::operator[]"
00023          << "value was" << i;
00024     ad_exit(21);
00025   }
00026   if (i>slicemax())
00027   {
00028     cerr << "matrix bound exceeded"
00029          << " -- row index too high in 3d_array::operator[]"
00030          << "value was" << i;
00031     ad_exit(22);
00032   }
00033   return t[i];
00034 }
00035 #endif