Revision 1109 trunk/src/df1b2separable/df33fun.h
df33fun.h (revision 1109)  

3  3 
* 
4  4 
* Author: David Fournier 
5  5 
* Copyright (c) 20082012 Regents of the University of California 
6 
*


6 
* 

7  7 
* ADModelbuilder and associated libraries and documentations are 
8  8 
* provided under the general terms of the "BSD" license. 
9  9 
* 
10  10 
* License: 
11 
*


11 
* 

12  12 
* Redistribution and use in source and binary forms, with or without 
13  13 
* modification, are permitted provided that the following conditions are 
14  14 
* met: 
15 
*


15 
* 

16  16 
* 1. Redistributions of source code must retain the above copyright 
17  17 
* notice, this list of conditions and the following disclaimer. 
18 
*


18 
* 

19  19 
* 2. Redistributions in binary form must reproduce the above copyright 
20  20 
* notice, this list of conditions and the following disclaimer in the 
21  21 
* documentation and/or other materials provided with the distribution. 
22 
*


22 
* 

23  23 
* 3. Neither the name of the University of California, Otter Research, 
24  24 
* nor the ADMB Foundation nor the names of its contributors may be used 
25  25 
* to endorse or promote products derived from this software without 
26  26 
* specific prior written permission. 
27 
*


27 
* 

28  28 
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
29  29 
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
30  30 
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 
...  ...  
139  139 
df3_three_vector(void); 
140  140 
void allocate(void); 
141  141 
void allocate(int min,int max); 
142 
df3_three_variable& operator () (int i) const


143 
{


142 
df3_three_variable& operator () (int i) const 

143 
{ 

144  144 
return (df3_three_variable&) (*(v+i)); 
145  145 
} 
146 
df3_three_variable& operator [] (int i) const


147 
{


146 
df3_three_variable& operator [] (int i) const 

147 
{ 

148  148 
return (df3_three_variable&) (*(v+i)); 
149  149 
} 
150  150 
void initialize(void); 
...  ...  
156  156  
157  157  
158  158 
dvector value(const df3_three_vector& v); 
159 


159  
160  160 
dvector first_derivatives(const df3_three_vector& v); 
161  161  
162  162 
dvector second_derivatives(const df3_three_vector& v); 
163 


163  
164  164 
dvector third_derivatives(const df3_three_vector& v); 
165  165  
166  166 
/** 
...  ...  
177  177 
int indexmin(void) const { return int(index_min); } 
178  178 
int indexmax(void) const { return int(index_max); } 
179  179 
df3_three_matrix(int rmin,int rmax,int cmin,int cmax); 
180 
df3_three_vector& operator () (int i) const


181 
{


182 
return (df3_three_vector&) *(v+i);


180 
df3_three_vector& operator () (int i) const 

181 
{ 

182 
return (df3_three_vector&) *(v+i); 

183  183 
} 
184 
df3_three_vector& operator [] (int i) const


185 
{


186 
return (df3_three_vector&) *(v+i);


184 
df3_three_vector& operator [] (int i) const 

185 
{ 

186 
return (df3_three_vector&) *(v+i); 

187  187 
} 
188 
df3_three_variable& operator () (int i,int j) const


189 
{


190 
return (df3_three_variable&) (*(v+i))(j);


188 
df3_three_variable& operator () (int i,int j) const 

189 
{ 

190 
return (df3_three_variable&) (*(v+i))(j); 

191  191 
} 
192  192 
void initialize(void); 
193  193 
//df3_three_variable& operator () (int i,int j) const { return *((v+i)>(v+j)); } 
...  ...  
197  197 
}; 
198  198  
199  199 
dmatrix value(const df3_three_matrix& v); 
Also available in: Unified diff