28 #include <sys/types.h>
32 #if !defined(_MSC_VER)
35 #include <sys/types.h>
39 #if defined(__NDPX__ )
41 int LSEEK(
int,
int,
int);
42 int read(
int,
char*,
int);
74 OFF_T last_gpos=
LSEEK(_GRADFILE_PTR,0L,SEEK_CUR);
98 for (
int ijac=1;ijac<=depvar_count;ijac++)
104 cout <<
"maximum number of depdendent variables of "
107 <<
"use gradient_structure::set_NUM_DEPENDENT_VARIABLES(int i);"
108 <<
endl <<
"to increase the number of dependent variables"
147 LSEEK(_GRADFILE_PTR,lpos,SEEK_SET);
158 cerr <<
"warning -- calling gradcalc when no calculations generating"
159 <<
endl <<
"derivative information have occurred" <<
endl;
178 #if defined (__ZTC__)
193 #ifdef FAST_ASSEMBLER
214 }
while (break_flag);
217 for (
int i = 0; i < nvar; ++i)
indvar_offset_list * INDVAR_LIST
void read(const test_smartlist &, void *, int nsize)
void set_gbuffer_pointers(void)
Description not yet available.
double * get_address(const int &i)
void jacobcalc(int nvar, const dmatrix &jac)
Description not yet available.
dependent_variables_information * DEPVARS_INFO
#define ADUNCONST(type, obj)
Creates a shallow copy of obj that is not CONST.
Vector of double precision numbers.
int indexmin() const
Get minimum valid index.
void jacobcalc(int nvar, const dmatrix &g)
Description not yet available.
Holds derivative information for arithmetic operators and math library functions. ...
void write_grad_stack_buffer()
Holds the data for the prevariable class.
void write_cmpdif_stack_buffer()
Description not yet available.
void read_cmpdif_stack_buffer(OFF_T &lpos)
Description not yet available.
humungous_pointer ARRAY_MEMBLOCK_BASE
prnstream & endl(prnstream &)
unsigned long int max_last_offset
unsigned long int get_max_last_offset()
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
static _THREAD gradient_structure * _instance
void initialize(void)
Initialze all elements of dvector to zero.
grad_stack_entry * ptr_first
static _THREAD DF_FILE * fp
void save_variables()
Save variables to a buffer.
int read_grad_stack_buffer(OFF_T &lpos)
Description not yet available.
void restore_variables()
Restore variables from buffer.
void save_arrays()
Compute the gradient from the data stored in the global gradient_structure.
static _THREAD grad_stack * GRAD_STACK1
void(* func)(void)
< Pointer to function (if any) to be used for derivative calculation
double * dep_addr
Pointer to dependent variable.
void increment_current_gradfile_ptr(void)
If there is another file set the handle to point to it otherwise we are out of room.
double x
< value of the variable