22 #include <iostream.hpp>
42 cerr <<
"Incompatible bounds in "
43 "dvar_vector elem_prod(const dvar_vector& v1, const dvar_vector& v2)"
53 for (
int i = min; i <=
max; ++i)
55 ptmpi->
x = pv1i->
x * pv2i->
x;
99 double* pdftmpi = dftmp.
get_v() +
min;
102 for (
int i = min; i <=
max; ++i)
105 *pdfv1i = *pdftmpi * *pcv2i;
106 *pdfv2i = *pdftmpi * *pcv1i;
136 cerr <<
"Incompatible bounds in dvar_vector elem_prod(const dvector&, const dvar_vector&)\n";
146 for (
int i = min; i <=
max; ++i)
148 ptmpi->
x = *pv1i * pv2i->
x;
189 double* pdfv2i = dfv2.
get_v() +
min;
190 double* pdftmpi = dftmp.
get_v() +
min;
192 for (
int i = min; i <=
max; ++i)
195 *pdfv2i = *pdftmpi * *pcv1i;
222 cerr <<
"Incompatible bounds in dvar_vector elem_prod(const dvar_vector&, const dvector&)\n";
231 for (
int i = min; i <=
max; ++i)
233 ptmpi->
x = pv1i->
x * *pv2i;
272 double* pdfv1i = dfv1.
get_v() +
min;
273 double* pdftmpi = dftmp.
get_v() +
min;
275 for (
int i = min; i <=
max; ++i)
278 *pdfv1i = *pdftmpi * *pcv2i;
d3_array elem_prod(const d3_array &a, const d3_array &b)
Returns d3_array results with computed elements product of a(i, j, k) * b(i, j, k).
Vector of double precision numbers.
int indexmin() const
Get minimum valid index.
void save_dvector_derivatives(const dvar_vector_position &pos) const
Puts the derivative values in a dvector into a dvar_vector's guts.
Description not yet available.
Description not yet available.
void verify_identifier_string(const char *)
Verifies gradient stack string.
dvector restore_dvector_value(const dvector_position &tmp)
Holds the data for the prevariable class.
void set_gradient_stack(void(*func)(void), double *dep_addr, double *ind_addr1=NULL, double mult1=0, double *ind_addr2=NULL, double mult2=0)
Description not yet available.
void dvdv_elem_prod(void)
Description not yet available.
void save_dvector_position(const dvector &v)
prnstream & endl(prnstream &)
void save_dvector_value(const dvector &v)
void save_dvar_vector_value(const dvar_vector &v)
dvar_vector_position restore_dvar_vector_position()
void RETURN_ARRAYS_INCREMENT()
int indexmax() const
Get maximum valid index.
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
void dvcv_elem_prod(void)
Description not yet available.
static _THREAD gradient_structure * _instance
int save_identifier_string(const char *)
Writes a gradient stack verification string.
dvector restore_dvar_vector_value(const dvar_vector_position &tmp)
Restores the size, address, and value information for a dvar_vector.
dvector_position restore_dvector_position()
void save_dvar_vector_position(const dvar_vector &v)
static _THREAD DF_FILE * fp
Stores the adjoint gradient data that will be processed by gradcalc.
dvector restore_dvar_vector_derivatives(const dvar_vector_position &tmp)
Description not yet available.
void RETURN_ARRAYS_DECREMENT()
static _THREAD grad_stack * GRAD_STACK1
class for things related to the gradient structures, including dimension of arrays, size of buffers, etc.
void cvdv_elem_prod(void)
Description not yet available.
double x
< value of the variable