19 #include <iostream.hpp>
33 constexpr
size_t wsize=
sizeof(int);
34 constexpr
size_t wsize1=
sizeof(
void*);
42 for (
int i=min;i<=
max;i++)
68 constexpr
size_t wsize =
sizeof(int);
95 constexpr
size_t wsize =
sizeof(int);
116 constexpr
size_t wsize =
sizeof(int);
117 constexpr
size_t wsize2 =
sizeof(
void*);
127 for (
int i=max;i>=
min;i--)
149 constexpr
size_t wsize =
sizeof(int);
150 constexpr
size_t wsize2 =
sizeof(
void*);
162 for (
int i=max;i>=
min;i--)
185 for (
int i = max; i >=
min; --i)
204 for (
int i = max; i >=
min; --i)
237 double* ptmpveci = tmpvec.
get_v() +
min;
238 for (
int i = min; i <=
max; ++i)
240 *ptmpveci = ((
pos(i)).va)[ii].xvalue();
241 ((
pos(i)).va)[ii].xvalue() = 0.0;
264 for (
int i = min; i <=
max; ++i)
287 int* pncli = ncl.
get_v() + nrl;
288 int* pnchi = nch.
get_v() + nrl;
290 for (
int i = nrl; i <= nrh; ++i)
304 pncli = ncl.
get_v() + nrl;
305 pnchi = nch.
get_v() + nrl;
307 for (
int i = nrl; i <= nrh; ++i)
311 double* pmij = pmi->
get_v() + jmin;
313 for (
int j = jmin; j <= jmax; ++j)
343 int* pncli = ncl.
get_v() + nrl;
344 int* pnchi = nch.
get_v() + nrl;
346 for (
int i = nrl; i <= nrh; ++i)
359 pncli = ncl.
get_v() + nrl;
360 pnchi = nch.
get_v() + nrl;
362 for (
int i = nrl; i <= nrh; ++i)
366 double* pmij = pmi->
get_v() + jmin;
368 for (
int j = jmin; j <= jmax; ++j)
370 (poutj->
va + i)->
x = *pmij;
399 cerr <<
"Error -- Index out of bounds in\n"
400 "void nograd_assign(const dvar_matrix& m,const dvector& v, const int& ii)"
410 for (
int j = min; j <=
max; ++j)
412 (pmj->
va + ii)->
x = *pvj;
Description not yet available.
d3_array_position(int mmin, int mmax)
Description not yet available.
dvector restore_dvar_matrix_derivative_column(const dvar_matrix_position &_pos, const int &ii)
Description not yet available.
dmatrix restore_dvar_matrix_der_nozero(const dvar_matrix_position &_pos)
Description not yet available.
Vector of double precision numbers.
int indexmin() const
Get minimum valid index.
void save_dmatrix_position(const dmatrix &m)
dmatrix restore_dvar_matrix_derivatives(const dvar_matrix_position &_pos)
Description not yet available.
dvar_matrix nograd_assign_trans(const dmatrix &m)
Description not yet available.
dvar_vector nograd_assign(dvector tmp)
Description not yet available.
dvar_matrix_position restore_dvar_matrix_position()
Reads back the size and address information for a dvar_matrix, restores the size, address...
dmatrix_position restore_dmatrix_position()
Description not yet available.
dmatrix_position restore_dmatrix_position()
Null class to allow specialized function overloads.
Holds the data for the prevariable class.
dvector restore_dvar_matrix_derivative_row(const dvar_matrix_position &_pos, const int &ii)
Description not yet available.
prnstream & endl(prnstream &)
Array of integers(int) with indexes from index_min to indexmax.
Description not yet available.
int indexmax() const
Get maximum valid index.
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Description not yet available.
void save_d3_array_position(const d3_array &a)
dvector restore_dvar_vector_der_nozero(const dvar_vector_position &tmp)
Description not yet available.
dvar_matrix_position restore_dvar_matrix_position()
static _THREAD DF_FILE * fp
void save_d3_array_position() const
Description not yet available.
void save_dmatrix_position() const
Saves size and address information for a dmatrix to adjoint data file.
size_t pos(const adstring &substr, const adstring &s)
Class definition of matrix with derivitive information .
dvector restore_dvar_vector_derivatives(const dvar_vector_position &tmp)
Description not yet available.
d3_array_position restore_d3_array_position()
void fwrite(const void *s, const size_t num_bytes)
Reads num_bytes from s and writes to buffer.
void fread(void *s, const size_t num_bytes)
Reads num_bytes from buffer and copies to s.
void nograd_assign_column(const dvar_matrix &m, const dvector &v, const int &ii)
Description not yet available.
d3_array_position restore_d3_array_position()
Description not yet available.
Description not yet available.
double x
< value of the variable
Description not yet available.