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 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 }
Generated on Tue Mar 8 2016 19:51:34 for ADMB Documentation by 1.8.0 |