ADMB Documentation  11.1.2495
 All Classes Files Functions Variables Typedefs Friends Defines
fvar_m29.cpp
Go to the documentation of this file.
00001 /*
00002  * $Id: fvar_m29.cpp 1919 2014-04-22 22:02:01Z johnoel $
00003  *
00004  * Author: David Fournier
00005  * Copyright (c) 2008-2012 Regents of the University of California
00006  */
00011 #include "fvar.hpp"
00012 
00017 dvariable mean(const dvar_matrix& m)
00018 {
00019   dvariable tmp;
00020   tmp=sum(m)/double(size_count(m));
00021   return tmp;
00022 }