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
gradchk.cpp
Go to the documentation of this file.
1
/*
2
* $Id$
3
*
4
* Author: David Fournier
5
* Copyright (c) 2008-2012 Regents of the University of California
6
*/
11
#include <
fvar.hpp
>
12
#include <stdint.h>
13
18
void
grad_chk
(
void
)
19
{
20
if
(
gradient_structure::GRAD_STACK1
->ptr
21
<=
gradient_structure::GRAD_STACK1
->ptr_first)
22
{
23
cout <<
" 0 offset in gradstack "
<<
endl
;
24
}
// current is one past the end so -- it
25
else
26
{
27
#if (defined(__GNUC__) && defined(__i386)) || (defined(_MSC_VER) && defined(_M_IX86))
28
cout << int(
gradient_structure::GRAD_STACK1
->ptr)
29
-int(
gradient_structure::GRAD_STACK1
->ptr_first)
30
#else
31
cout << intptr_t(
gradient_structure::GRAD_STACK1
->ptr)
32
- intptr_t(
gradient_structure::GRAD_STACK1
->ptr_first)
33
#endif
34
<<
" offset in gradstack "
<<
endl
;
35
}
36
}
grad_chk
void grad_chk(void)
Description not yet available.
Definition:
gradchk.cpp:18
endl
prnstream & endl(prnstream &)
fvar.hpp
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
gradient_structure::GRAD_STACK1
static _THREAD grad_stack * GRAD_STACK1
Definition:
gradient_structure.h:115
Generated on Wed Sep 7 2022 00:01:28 for ADMB Documentation by
1.8.5