ADMB Documentation  11.1.1920
 All Classes Files Functions Variables Typedefs Friends Defines
fvar_a52.cpp
Go to the documentation of this file.
00001 /*
00002  * $Id: fvar_a52.cpp 1919 2014-04-22 22:02:01Z johnoel $
00003  *
00004  * Author: David Fournier
00005  * Copyright (c) 2008-2012 Regents of the University of California
00006  */
00007 #include "fvar.hpp"
00008 /*
00009     dvar_vector dvar_vector::operator()(int low,int high)
00010     {
00011       if (low>high)
00012       {
00013         cerr << " low index > high index in"
00014                  " dvar_vector::operator()(int low,int high)"  << endl;
00015         ad_exit(1);
00016       }
00017       if (low<indexmin())
00018       {
00019         cerr << "lower index out of bounds in"
00020                 " dvar_vector::operator()(int low,int high)" << endl ;
00021         ad_exit(1);
00022       }
00023       if (high>indexmax())
00024       {
00025         cerr << "upper index out of bounds in"
00026                 " dvar_vector::operator()(int low,int high)" << endl;
00027         ad_exit(1);
00028       }
00029       dvar_vector tmp(low,high);
00030       for (int i=low;i<=high;i++)
00031       {
00032         tmp(i)=(*this)(i);
00033       }
00034       return tmp;
00035     }
00036 */