Changeset 1505


Ignore:
Timestamp:
Aug 25, 2009 11:36:49 AM (11 years ago)
Author:
bradbell
Message:

trunk: Add example where user creates her or his own AD function class

makefile.am: add ad_fun.cpp to source list.
makefine.in: changes automatically transferred from makefile.am.
example.cpp: add ad_fun to list of examples/tests.
example_list.omh: add ad_fun to list of examples.
whats_new_09.omh: changes from user's point of view.

Location:
trunk
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/example/example.cpp

    r1501 r1505  
    4646extern bool Add(void);
    4747extern bool AddEq(void);
     48extern bool ad_fun(void);
    4849extern bool ad_in_c(void);
    4950extern bool Asin(void);
     
    188189        ok &= Run( Add,               "Add"              );
    189190        ok &= Run( AddEq,             "AddEq"            );
     191        ok &= Run( ad_fun,            "ad_fun"           );
    190192        ok &= Run( ad_in_c,           "ad_in_c"          );
    191193        ok &= Run( Asin,              "Asin"             );
  • trunk/example/makefile.am

    r1501 r1505  
    6767        add.cpp \
    6868        add_eq.cpp \
     69        ad_fun.cpp \
    6970        ad_in_c.cpp \
    7071        asin.cpp \
  • trunk/example/makefile.in

    r1503 r1505  
    4848am__example_SOURCES_DIST = mul_level_adolc.cpp ode_taylor_adolc.cpp \
    4949        example.cpp abort_recording.cpp abs.cpp acos.cpp add.cpp \
    50         add_eq.cpp ad_in_c.cpp asin.cpp atan.cpp atan_2.cpp \
     50        add_eq.cpp ad_fun.cpp ad_in_c.cpp asin.cpp atan.cpp atan_2.cpp \
    5151        base_adolc.hpp bender_quad.cpp bool_fun.cpp vector_bool.cpp \
    5252        check_numeric_type.cpp check_simple_vector.cpp compare.cpp \
     
    7979am_example_OBJECTS = $(am__objects_1) example.$(OBJEXT) \
    8080        abort_recording.$(OBJEXT) abs.$(OBJEXT) acos.$(OBJEXT) \
    81         add.$(OBJEXT) add_eq.$(OBJEXT) ad_in_c.$(OBJEXT) \
    82         asin.$(OBJEXT) atan.$(OBJEXT) atan_2.$(OBJEXT) \
    83         bender_quad.$(OBJEXT) bool_fun.$(OBJEXT) vector_bool.$(OBJEXT) \
    84         check_numeric_type.$(OBJEXT) check_simple_vector.$(OBJEXT) \
    85         compare.$(OBJEXT) compare_change.$(OBJEXT) \
    86         complex_poly.$(OBJEXT) cond_exp.$(OBJEXT) copy_ad.$(OBJEXT) \
    87         copy_base.$(OBJEXT) cos.$(OBJEXT) cosh.$(OBJEXT) \
    88         cppad_vector.$(OBJEXT) default.$(OBJEXT) div.$(OBJEXT) \
    89         div_eq.$(OBJEXT) eq.$(OBJEXT) equal_op_seq.$(OBJEXT) \
    90         erf.$(OBJEXT) error_handler.$(OBJEXT) exp.$(OBJEXT) \
    91         for_one.$(OBJEXT) for_two.$(OBJEXT) forward.$(OBJEXT) \
    92         for_sparse_jac.$(OBJEXT) fun_check.$(OBJEXT) \
     81        add.$(OBJEXT) add_eq.$(OBJEXT) ad_fun.$(OBJEXT) \
     82        ad_in_c.$(OBJEXT) asin.$(OBJEXT) atan.$(OBJEXT) \
     83        atan_2.$(OBJEXT) bender_quad.$(OBJEXT) bool_fun.$(OBJEXT) \
     84        vector_bool.$(OBJEXT) check_numeric_type.$(OBJEXT) \
     85        check_simple_vector.$(OBJEXT) compare.$(OBJEXT) \
     86        compare_change.$(OBJEXT) complex_poly.$(OBJEXT) \
     87        cond_exp.$(OBJEXT) copy_ad.$(OBJEXT) copy_base.$(OBJEXT) \
     88        cos.$(OBJEXT) cosh.$(OBJEXT) cppad_vector.$(OBJEXT) \
     89        default.$(OBJEXT) div.$(OBJEXT) div_eq.$(OBJEXT) eq.$(OBJEXT) \
     90        equal_op_seq.$(OBJEXT) erf.$(OBJEXT) error_handler.$(OBJEXT) \
     91        exp.$(OBJEXT) for_one.$(OBJEXT) for_two.$(OBJEXT) \
     92        forward.$(OBJEXT) for_sparse_jac.$(OBJEXT) fun_check.$(OBJEXT) \
    9393        hes_lagrangian.$(OBJEXT) hes_lu_det.$(OBJEXT) \
    9494        hes_minor_det.$(OBJEXT) hessian.$(OBJEXT) \
     
    303303        add.cpp \
    304304        add_eq.cpp \
     305        ad_fun.cpp \
    305306        ad_in_c.cpp \
    306307        asin.cpp \
     
    461462@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/abs.Po@am__quote@
    462463@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/acos.Po@am__quote@
     464@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ad_fun.Po@am__quote@
    463465@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ad_in_c.Po@am__quote@
    464466@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/add.Po@am__quote@
  • trunk/omh/example_list.omh

    r1501 r1505  
    3131
    3232$childtable%
     33        example/ad_fun.cpp%
    3334        example/ad_in_c.cpp%
    3435        example/hes_minor_det.cpp%
     
    8081$rref Add.cpp$$
    8182$rref AddEq.cpp$$
     83$rref ad_fun.cpp$$
    8284$rref ad_in_c.cpp$$
    8385$rref Asin.cpp$$
  • trunk/omh/whats_new_09.omh

    r1501 r1505  
    5454trying to read and understand the CppAD source code.)
    5555
     56$head 08-25$$
     57Add $cref/ad_fun.cpp/$$
     58an example of how to create your own interface to an $cref/ADFun/$$ object.
     59
    5660$head 08-14$$
    5761Add $cref/ad_in_c.cpp/$$
Note: See TracChangeset for help on using the changeset viewer.