ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
f1b2vc11.cpp
Go to the documentation of this file.
1 /*
2  * $Id$
3  *
4  * Author: David Fournier
5  * Copyright (c) 2012 ADMB Foundation
6  */
7 
8 #include <df1b2fun.h>
9 
11 {
12  int lb=iv.indexmin();
13  int ub=iv.indexmax();
14  df1b2vector tmp;
15  if (lb<=ub)
16  tmp.noallocate(lb,ub);
17 
18  for (int i=lb;i<=ub;i++)
19  {
20  tmp(i)=(*this)(iv(i));
21  tmp(i).get_ind_index()=(*this)(iv(i)).get_ind_index();
22  }
23  return tmp;
24 }
Description not yet available.
Definition: df1b2fun.h:953
df1b2variable & operator()(int i) const
Definition: df1b2fun.h:994
Array of integers(int) with indexes from index_min to indexmax.
Definition: ivector.h:50
void noallocate(int lib, int ub)
Description not yet available.
Definition: f1b2vc1.cpp:733
int indexmin() const
Definition: ivector.h:99
int indexmax() const
Definition: ivector.h:104
Description not yet available.