ADMB Documentation  11.1.2536
 All Classes Files Functions Variables Typedefs Friends Defines
ivec.cpp
Go to the documentation of this file.
00001 /*
00002  * $Id: ivec.cpp 542 2012-07-10 21:04:06Z johnoel $
00003  *
00004  * Author: David Fournier
00005  * Copyright (c) 2008-2012 Regents of the University of California
00006  */
00011 #include <fvar.hpp>
00012 
00017 ivector& ivector::shift(int min)
00018 {
00019   v += indexmin()-min;
00020   index_max=index_max+min-index_min;
00021   index_min=min;
00022   shape->shift(min);
00023   return *this;
00024 }
00025 
00030 void lvector::shift(int min)
00031 {
00032   v += indexmin()-min;
00033   shape->shift(min);
00034 }