Statistics
| Revision:

root / trunk / src / df1b2-separable / f1b2vc11.cpp @ 1107

History | View | Annotate | Download (411 Bytes)

1
/*
2
 * $Id: f1b2vc11.cpp 1107 2013-07-11 21:56:15Z johnoel $
3
 *
4
 * Author: David Fournier
5
 * Copyright (c) 2012 ADMB Foundation
6
 */
7

    
8
#include <df1b2fun.h>
9

    
10
df1b2vector df1b2vector::operator() (const ivector & iv)
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
}