ADMB Documentation  11.1.1020
 All Classes Files Functions Variables Typedefs Friends Defines
df1b2test.h
Go to the documentation of this file.
00001 /*
00002  * $Id: df1b2test.h 542 2012-07-10 21:04:06Z johnoel $
00003  *
00004  * Author: David Fournier
00005  * Copyright (c) 2008-2012 Regents of the University of California
00006  * 
00007  * ADModelbuilder and associated libraries and documentations are
00008  * provided under the general terms of the "BSD" license.
00009  *
00010  * License:
00011  * 
00012  * Redistribution and use in source and binary forms, with or without
00013  * modification, are permitted provided that the following conditions are
00014  * met:
00015  * 
00016  * 1. Redistributions of source code must retain the above copyright
00017  * notice, this list of conditions and the following disclaimer.
00018  * 
00019  * 2.  Redistributions in binary form must reproduce the above copyright
00020  * notice, this list of conditions and the following disclaimer in the
00021  * documentation and/or other materials provided with the distribution.
00022  * 
00023  * 3.  Neither the name of the  University of California, Otter Research,
00024  * nor the ADMB Foundation nor the names of its contributors may be used
00025  * to endorse or promote products derived from this software without
00026  * specific prior written permission.
00027  * 
00028  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
00029  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
00030  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
00031  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
00032  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
00033  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
00034  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
00035  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
00036  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00037  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
00038  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00039  *
00040  */
00045 #if !defined(__DF1B2TEST__)
00046 #  define __DF1B2TEST__ 
00047 #if defined(__GNUC__)
00048 //#pragma interface
00049 #endif
00050 #include <df1b2fun.h>
00051 #include <admodel.h>
00052 
00057   class df1b2function2c
00058   {
00059   public:
00060     double (*f)(double,double); 
00061     double (*df)(double,double); 
00062     double (*d2f)(double,double); 
00063     double (*d3f)(double,double); 
00064     adstring funname;
00065 
00066     df1b2function2c
00067     (
00068       double (*_f)(double,double),
00069       double (*_df)(double,double),
00070       double (*_d2f)(double,double),
00071       double (*_d3f)(double,double),
00072       const adstring & funame="unnamed"
00073     );
00074 
00075     df1b2variable operator () (const df1b2variable& x,double y);
00076     df1b2variable operator () (double x,const df1b2variable& y);
00077   }; 
00078 
00079 #endif   //if !defined(__DF1B2TEST__)