ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
fvar_m44.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 
13 void dfmattrans(void);
14 
20 {
21  int rmin=m1.indexmin();
22  int rmax=m1.indexmax();
23  int cmin=m1.colmin();
24  int cmax=m1.colmax();
25  dvar_matrix t1(cmin,cmax,rmin,rmax);
26 
27  for (int i=rmin; i<=rmax; i++)
28  {
29  for (int j=cmin; j<=cmax; j++)
30  {
31  t1.elem_value(j,i)=m1.elem_value(i,j);
32  }
33  }
34 
41  GRAD_STACK1->set_gradient_stack(dfmattrans);
42 
43  return (t1);
44 }
45 
50 void dfmattrans(void)
51 {
53 
59  dmatrix dfm1(m1pos);
60  int rmin=dfm1.indexmin();
61  int rmax=dfm1.indexmax();
62  int cmin=dfm1.colmin();
63  int cmax=dfm1.colmax();
64 
65  for (int i=rmin; i<=rmax; i++)
66  {
67  for (int j=cmin; j<=cmax; j++)
68  {
69  //t1.elem_value(j,i)=m1.elem_value(i,j);
70  dfm1(i,j)=dftmp(j,i);
71  }
72  }
73  dfm1.save_dmatrix_derivatives(m1pos);
74 }
Description not yet available.
Definition: fvar.hpp:920
double & elem_value(int i, int j)
Definition: fvar.hpp:2676
int colmin(void) const
Definition: fvar.hpp:2552
dmatrix trans(const dmatrix &m1)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Definition: dmat2.cpp:13
int indexmin() const
Definition: fvar.hpp:2917
dmatrix restore_dvar_matrix_derivatives(const dvar_matrix_position &_pos)
Description not yet available.
Definition: cmpdif6.cpp:178
void verify_identifier_string(const char *)
Verifies gradient stack string.
Definition: cmpdif3.cpp:149
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.
Definition: fvar.hpp:1045
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.
Definition: cmpdif5.cpp:285
int colmin(void) const
Definition: fvar.hpp:2939
Description not yet available.
Definition: fvar.hpp:2819
int save_identifier_string(const char *)
Writes a gradient stack verification string.
Definition: cmpdif2.cpp:315
int indexmax() const
Definition: fvar.hpp:2921
dvar_matrix_position restore_dvar_matrix_position()
Definition: cmpdif6.cpp:114
static _THREAD DF_FILE * fp
int indexmax(void) const
Definition: fvar.hpp:2572
void save_dvar_matrix_position(const dvar_matrix &m)
Definition: cmpdif5.cpp:345
void dfmattrans(void)
Description not yet available.
Definition: fvar_m44.cpp:50
Class definition of matrix with derivitive information .
Definition: fvar.hpp:2480
Stores the adjoint gradient data that will be processed by gradcalc.
static _THREAD grad_stack * GRAD_STACK1
int indexmin(void) const
Definition: fvar.hpp:2568
int colmax(void) const
Definition: fvar.hpp:2943
int colmax(void) const
Definition: fvar.hpp:2556
Description not yet available.
Definition: fvar.hpp:4843