Revision 1213

trunk/contrib/templates/template1var.cpp (revision 1213)
1
#include <admodel.h>
2
#include <df1b2fun.h>
3
#include <adrndeff.h> 
4

  
5
/**  function; scalar
6
\param x independent variable; data scalar
7
\param a ; differentiable scalar
8
\return  \f$  \f$
9
\ingroup ECOL
10
**/
11
dvariable func(const double& x,  const prevariable& a)
12
{
13
    RETURN_ARRAYS_INCREMENT();	
14
	dvariable y;
15
	//calculate y(s,s)
16

  
17
	RETURN_ARRAYS_DECREMENT();
18
	return (y);
19
}
20
/**  function; vectorized
21
\param x independent variable; data vector
22
\param a ; differentiable scalar
23
\return  \f$  \f$
24
\ingroup ECOL
25
**/
26
dvar_vector func(const dvector& x,  const prevariable& a)
27
{
28
    RETURN_ARRAYS_INCREMENT();	
29
	dvar_vector y;
30
	//calculate y(v,s)
31

  
32
	RETURN_ARRAYS_DECREMENT();	
33
    return (y);
34
}
35
/**  function; vectorized
36
\param x independent variable; data vector
37
\param a ; differentiable vector
38
\return  \f$  \f$
39
\ingroup ECOL
40
**/
41
dvar_vector func(const dvector& x,  const dvar_vector& a)
42
{
43
    RETURN_ARRAYS_INCREMENT();	
44
	dvar_vector y;
45
	//calculate y(v,v)
46

  
47
	RETURN_ARRAYS_DECREMENT();	
48
    return (y);
49
}
50
/*-------------------------------1st varible contains random effects*/
51
/** function; random effects scalar
52
\param x independent variable; data scalar
53
\param a ; differentiable scalar in a random effects model
54
\return  \f$  \f$
55
\ingroup ECOL
56
**/
57
df1b2variable func(const double& x,  const df1b2variable& a)
58
{
59
	df1b2variable y;
60
	//calculate y(s,s)
61

  
62
    return (y);
63
}
64
/** function; random effects vectorized
65
\param x independent variable; data vector
66
\param a ; differentiable scalar in a random effects model
67
\return  \f$  \f$
68
\ingroup ECOL
69
**/
70
df1b2vector func(const dvector& x,  const df1b2variable& a)
71
{
72
	df1b2vector y;
73
	//calculate y(v,s)
74

  
75
    return(y);
76
}
77
/** function; random effects vectorized
78
\param x independent variable; data vector
79
\param a ; differentiable vector in a random effects model
80
\return  \f$  \f$
81
\ingroup ECOL
82
**/
83
df1b2vector func(const dvector& x,  const df1b2vector& a)
84
{
85
	df1b2vector y;
86
	//calculate y(v,v)
87

  
88
    return(y);
89
}
trunk/contrib/templates/template2var.cpp (revision 1213)
1
#include <admodel.h>
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff