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 dvector dvector::operator - (void) 00018 { 00019 int mmin=indexmin(); 00020 int mmax=indexmax(); 00021 dvector tmp(mmin,mmax); 00022 for (int i=mmin;i<=mmax;i++) 00023 { 00024 tmp(i)=-elem(i); 00025 } 00026 return tmp; 00027 }
Generated on Tue Mar 8 2016 19:51:32 for ADMB Documentation by 1.8.0 |