ADMB Documentation  11.5.3197
 All Classes Files Functions Variables Typedefs Friends Defines
d3arr9.cpp
Go to the documentation of this file.
00001 /*
00002  * $Id$
00003  *
00004  * Author: David Fournier
00005  * Copyright (c) 2008-2012 Regents of the University of California
00006  */
00011 #include <fvar.hpp>
00012 
00017 double d3_array::fill_seqadd(double i1,double i2)
00018 {
00019   int mmin=indexmin();
00020   int mmax=indexmax();
00021   double inp = i1;
00022   for (int i=mmin;i<=mmax;i++)
00023   {
00024     double tmp=(*this)(i).fill_seqadd(inp,i2);
00025     inp=tmp;
00026   }
00027   return inp;
00028 }