ADMB Documentation  11.5.3197
 All Classes Files Functions Variables Typedefs Friends Defines
f1b2vc11.cpp
Go to the documentation of this file.
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 }