ADMB Documentation  11.2.2828
 All Classes Files Functions Variables Typedefs Friends Defines
d3arr12.cpp
Go to the documentation of this file.
00001 /*
00002  * $Id: d3arr12.cpp 1112 2013-07-12 21:41:41Z johnoel $
00003  *
00004  * Author: David Fournier
00005  * Copyright (c) 2008-2012 Regents of the University of California
00006  */
00011 #include "fvar.hpp"
00012 
00017 dmatrix operator * (const d3_array & t,const dvector& v)
00018 {
00019   int mmin=t.indexmin();
00020   int mmax=t.indexmax();
00021   dmatrix tmp(mmin,mmax);
00022   for (int i=mmin;i<=mmax;i++)
00023   {
00024     tmp(i)=t(i)*v;
00025   }
00026   return tmp;
00027 }