19 #include <iostream.hpp>
36 cerr <<
" Incompatible array bounds in "
37 "dmatrix operator*(const dmatrix& x, const dvar_matrix& m)\n";
43 const unsigned int rowsize = m2.
rowsize();
46 double* temp_col =
new double[rowsize];
54 temp_col[k] = cm2.
elem(k,j);
59 const dvector& temp_row = cm1(i);
62 sum+=temp_row(k) * (temp_col[k]);
72 catch (std::bad_alloc& e)
74 cerr <<
"Error[" << __FILE__ <<
':' << __LINE__
75 <<
"]: Unable to allocate array.\n";
119 dfsum=dftmp.
elem(i,j);
124 dfm2.
elem(k,j)+=dfsum * cm1.
elem(i,k);
Description not yet available.
Vector of double precision numbers.
void save_dmatrix_position(const dmatrix &m)
dmatrix restore_dvar_matrix_derivatives(const dvar_matrix_position &_pos)
Description not yet available.
dvar_vector nograd_assign(dvector tmp)
Description not yet available.
double sum(const d3_array &darray)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
dmatrix_position restore_dmatrix_position()
void save_dmatrix_value(const dmatrix &m)
void verify_identifier_string(const char *)
Verifies gradient stack string.
void cmdm_prod(void)
Description not yet available.
dmatrix restore_dmatrix_value(const dmatrix_position &mpos)
dmatrix operator*(const d3_array &t, const dvector &v)
Description not yet available.
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.
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
void save_dmatrix_derivatives(const dvar_matrix_position &pos) const
Description not yet available.
static _THREAD gradient_structure * _instance
Description not yet available.
int save_identifier_string(const char *)
Writes a gradient stack verification string.
unsigned int rowsize() const
dvar_matrix_position restore_dvar_matrix_position()
static _THREAD DF_FILE * fp
void save_dvar_matrix_position(const dvar_matrix &m)
Class definition of matrix with derivitive information .
Stores the adjoint gradient data that will be processed by gradcalc.
dvector value(const df1_one_vector &v)
static _THREAD grad_stack * GRAD_STACK1
class for things related to the gradient structures, including dimension of arrays, size of buffers, etc.
void initialize(void)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Description not yet available.