ADMB Documentation
-a65f1c97
Main Page
Function Reference
Classes
Source Code
Related Pages
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
src
linad99
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
26
void
shape_check
(
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
}
dvector
Vector of double precision numbers.
Definition:
dvector.h:50
dvector::indexmin
int indexmin() const
Get minimum valid index.
Definition:
dvector.h:199
ad_exit
exitptr ad_exit
Definition:
gradstrc.cpp:53
shape_check
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
dvector::indexmax
int indexmax() const
Get maximum valid index.
Definition:
dvector.h:204
fvar.hpp
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Generated on Wed Sep 7 2022 00:01:27 for ADMB Documentation by
1.8.5