ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
dvect18.cpp
Go to the documentation of this file.
1 
6 #include "fvar.hpp"
7 
8 #ifdef __TURBOC__
9  #pragma hdrstop
10  #include <iostream.h>
11  #include <iomanip.h>
12 #endif
13 
14 #ifdef __ZTC__
15  #include <iostream.hpp>
16  #include <iomanip.hpp>
17 #endif
18 
27  const dvector& a,
28  const dvector& b,
29  const char* message)
30 {
31  if (a.indexmin() != b.indexmin() || a.indexmax() != b.indexmax())
32  {
33  cerr << " Vector sizes do no match in" << message << "\n";
34  ad_exit(1);
35  }
36 }
Vector of double precision numbers.
Definition: dvector.h:50
int indexmin() const
Get minimum valid index.
Definition: dvector.h:199
exitptr ad_exit
Definition: gradstrc.cpp:53
void shape_check(const dvector &a, const dvector &b, const char *message)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Definition: dvect18.cpp:26
int indexmax() const
Get maximum valid index.
Definition: dvector.h:204
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.