00001 /* 00002 * $Id$ 00003 * 00004 * Author: David Fournier 00005 * Copyright (c) 2012 ADMB Foundation 00006 */ 00007 00008 #include <df1b2fun.h> 00009 00010 df1b2vector df1b2vector::operator() (const ivector & iv) 00011 { 00012 int lb=iv.indexmin(); 00013 int ub=iv.indexmax(); 00014 df1b2vector tmp; 00015 if (lb<=ub) 00016 tmp.noallocate(lb,ub); 00017 00018 for (int i=lb;i<=ub;i++) 00019 { 00020 tmp(i)=(*this)(iv(i)); 00021 tmp(i).get_ind_index()=(*this)(iv(i)).get_ind_index(); 00022 } 00023 return tmp; 00024 }
Generated on Tue Mar 8 2016 19:51:32 for ADMB Documentation by 1.8.0 |