ADMB Documentation  11.1.2497
 All Classes Files Functions Variables Typedefs Friends Defines
d3arr11.cpp
Go to the documentation of this file.
00001 /*
00002  * $Id: d3arr11.cpp 1921 2014-04-23 18:47:05Z johnoel $
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