ADMB Documentation  11.5.3197
 All Classes Files Functions Variables Typedefs Friends Defines
dvect18.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 // file fvar_fn.cpp
00012 // math.h functions involving prevariables
00013 #include "fvar.hpp"
00014 
00015 #ifdef __TURBOC__
00016   #pragma hdrstop
00017   #include <iostream.h>
00018   #include <iomanip.h>
00019 #endif
00020 
00021 #ifdef __ZTC__
00022   #include <iostream.hpp>
00023   #include <iomanip.hpp>
00024 #endif
00025 
00026 #include <stdio.h>
00027 #include <math.h>
00028 
00036 void shape_check(const dvector& v1, const dvector& v2,
00037   const char *function_name)
00038 {
00039   if (v1.indexmin() != v2.indexmin() || v1.indexmax() != v2.indexmax())
00040   {
00041     cerr << " Vector sizes do no match in" << function_name << "\n";
00042     ad_exit(1);
00043   }
00044 }