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/=(const double x) 00018 { 00019 for (int i=indexmin(); i<=indexmax(); i++) 00020 { 00021 elem(i)/=x; 00022 } 00023 return(*this); 00024 } 00025 00030 dvector& dvector::operator*=(const double x) 00031 { 00032 for (int i=indexmin(); i<=indexmax(); i++) 00033 { 00034 elem(i)*=x; 00035 } 00036 return(*this); 00037 }
Generated on Tue Mar 8 2016 19:51:32 for ADMB Documentation by 1.8.0 |