Revision 1212
trunk/contrib/ecolib/templates/README.txt (revision 1212)  

1 
These templates can be used to create overloaded functions for ADMB. They contain snippets that should be replaced with text specific to each function.For an example, see ecology_replacements.sh 

2  
3 
The first argument to each function is always the data. There are versions written for functions of 1,2, or 3 parameters that can be scalars or vectors when applicable. 

4  
5  
6 
Snippets to replace in tmpl1var.cpp 

7 
function; 

8 
\f$ \f$ 

9 
func( 

10 
//calculate y(s,s) 

11 
//calculate y(v,s) 

12 
//calculate y(v,v) 

13  
14 
possibly 

15 
a ; 

16 
a) 

17 
x independent 

18 
x, 

19  
20 
Snippets to replace in tmpl2var.cpp 

21 
function; 

22 
\f$ \f$ 

23 
func( 

24 
//calculate y(s,s,s) 

25 
//calculate y(v,s,s) 

26 
//calculate y(v,v,s) 

27 
//calculate y(v,s,v) 

28 
//calculate y(v,v,v) 

29  
30 
possibly 

31 
a ; 

32 
a, 

33 
b ; 

34 
b) 

35 
x independent 

36 
x, 

37  
38 
Snippets to replace in tmpl3var.cpp 

39 
function; 

40 
\f$ \f$ 

41 
func( 

42 
//calculate y(s,s,s,s) 

43 
//calculate y(v,s,s,s) 

44 
//calculate y(v,v,s,s) 

45 
//calculate y(v,s,v,s) 

46 
//calculate y(v,v,v,s) 

47 
//calculate y(v,s,s,v) 

48 
//calculate y(v,v,s,v) 

49 
//calculate y(v,s,v,v) 

50 
//calculate y(v,v,v,v) 

51  
52 
possibly 

53 
a ; 

54 
a, 

55 
b ; 

56 
b, 

57 
c ; 

58 
c) 

59 
x independent 

60 
x, 
Also available in: Unified diff