ADMB Documentation  11.5.3197
 All Classes Files Functions Variables Typedefs Friends Defines
fvar_a60.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 void dvar_vector::fill_multinomial(const random_number_generator& rng,
00018   const dvector& p)
00019 {
00020   dvector tmp(indexmin(),indexmax());
00021   tmp.fill_multinomial(rng,p);
00022   *(this)=tmp;
00023 }