Statistics
| Revision:

root / branches / pthreads-737 / src / df1b2-separable / f1b2vc11.cpp @ 765

History | View | Annotate | Download (467 Bytes)

1
/*
2
 * $Id: f1b2vc11.cpp 542 2012-07-10 21:04:06Z 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
}