Changeset 2897


Ignore:
Timestamp:
Sep 18, 2013 9:05:21 AM (7 years ago)
Author:
bradbell
Message:
  1. Add a minimal atomic example called example/atomic/get_started.cpp.
  2. Advance version number in source to today.

optimize.hpp: Avoid warning with signed address type (used for testing).
atomic_base.hpp: Fix documentation, only zero order forward required.
reciprocal.cpp: fix spelling of now.
reverse.hpp: Fix bug in checking for nan during reverse mode.

Location:
trunk
Files:
1 added
18 edited

Legend:

Unmodified
Added
Removed
  • trunk/AUTHORS

    r2859 r2897  
    22             ===========================================
    33
    4 To date, 2013-05-27, Bradley M. Bell is the sole author of CppAD.
     4To date, 2013-09-18, Bradley M. Bell is the sole author of CppAD.
    55While Bradley M. Bell worked for the University of Washington during
    66the development of CppAD, the following are also true:
  • trunk/CMakeLists.txt

    r2859 r2897  
    1717
    1818# cppad_version is used by set_version.sh to get the version number.
    19 SET(cppad_version      "20130527" )
     19SET(cppad_version      "20130918" )
    2020SET(cppad_url          "http://www.coin-or.org/CppAD" )
    2121SET(cppad_description  "Differentiation of C++ Algorithms" )
  • trunk/bin/run_cmake.sh

    r2766 r2897  
    8383cmake_args="$cmake_args -D cppad_documentation=YES"
    8484cmake_args="$cmake_args -D cppad_sparse_list=YES"
    85 cmake_args="$cmake_args -D cppad_testvector=boost"
     85cmake_args="$cmake_args -D cppad_testvector=cppad"
    8686cmake_args="$cmake_args -D cppad_tape_id_type='int'"
    8787cmake_args="$cmake_args -D cppad_tape_addr_type=int"
  • trunk/configure

    r2885 r2897  
    11#! /bin/sh
    22# Guess values for system-dependent variables and create Makefiles.
    3 # Generated by GNU Autoconf 2.68 for cppad 20130527.
     3# Generated by GNU Autoconf 2.68 for cppad 20130918.
    44#
    55# Report bugs to <cppad@list.coin-or.org>.
     
    561561PACKAGE_NAME='cppad'
    562562PACKAGE_TARNAME='cppad'
    563 PACKAGE_VERSION='20130527'
    564 PACKAGE_STRING='cppad 20130527'
     563PACKAGE_VERSION='20130918'
     564PACKAGE_STRING='cppad 20130918'
    565565PACKAGE_BUGREPORT='cppad@list.coin-or.org'
    566566PACKAGE_URL=''
     
    13691369  # This message is too long to be a string in the A/UX 3.1 sh.
    13701370  cat <<_ACEOF
    1371 \`configure' configures cppad 20130527 to adapt to many kinds of systems.
     1371\`configure' configures cppad 20130918 to adapt to many kinds of systems.
    13721372
    13731373Usage: $0 [OPTION]... [VAR=VALUE]...
     
    14351435if test -n "$ac_init_help"; then
    14361436  case $ac_init_help in
    1437      short | recursive ) echo "Configuration of cppad 20130527:";;
     1437     short | recursive ) echo "Configuration of cppad 20130918:";;
    14381438   esac
    14391439  cat <<\_ACEOF
     
    15631563if $ac_init_version; then
    15641564  cat <<\_ACEOF
    1565 cppad configure 20130527
     1565cppad configure 20130918
    15661566generated by GNU Autoconf 2.68
    15671567
     
    21872187running configure, to aid debugging if configure makes a mistake.
    21882188
    2189 It was created by cppad $as_me 20130527, which was
     2189It was created by cppad $as_me 20130918, which was
    21902190generated by GNU Autoconf 2.68.  Invocation command line was
    21912191
     
    50345034# Define the identity of the package.
    50355035 PACKAGE='cppad'
    5036  VERSION='20130527'
     5036 VERSION='20130918'
    50375037
    50385038
     
    80868086# values after options handling.
    80878087ac_log="
    8088 This file was extended by cppad $as_me 20130527, which was
     8088This file was extended by cppad $as_me 20130918, which was
    80898089generated by GNU Autoconf 2.68.  Invocation command line was
    80908090
     
    81438143ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
    81448144ac_cs_version="\\
    8145 cppad config.status 20130527
     8145cppad config.status 20130918
    81468146configured by $0, generated by GNU Autoconf 2.68,
    81478147  with options \\"\$ac_cs_config\\"
  • trunk/configure.ac

    r2859 r2897  
    1313dnl Process this file with autoconf to produce a configure script.
    1414dnl   package   version              bug-report
    15 AC_INIT(cppad, 20130527, cppad@list.coin-or.org)
     15AC_INIT(cppad, 20130918, cppad@list.coin-or.org)
    1616AM_SILENT_RULES([yes])
    1717
  • trunk/cppad/local/atomic_base.hpp

    r2868 r2897  
    738738It can just return $icode%ok% == false%$$
    739739(and not compute anything) for values
    740 of $icode%p% > 0%$$ that are greater than those used by your
     740of $icode p$$ that are greater than those used by your
    741741$cref/reverse/Reverse/$$ mode calculations.
    742742
  • trunk/cppad/local/optimize.hpp

    r2892 r2897  
    16421642                        CPPAD_ASSERT_NARG_NRES(op, 1, 0);
    16431643                        new_arg[0] = tape[arg[0]].new_var;
    1644                         if( new_arg[0] < num_var )
     1644                        if( size_t(new_arg[0]) < num_var )
    16451645                        {       rec->PutArg(new_arg[0]);
    16461646                                rec->PutOp(UsravOp);
  • trunk/cppad/local/reverse.hpp

    r2892 r2897  
    206206                                        Partial[ind_taddr_[j] * p + k];
    207207                }
    208                 CPPAD_ASSERT_KNOWN( ! ( hasnan(value) && check_for_nan_ ) ,
    209                         "dw = f.Reverse(p, w): has a nan,\n"
    210                         "but none of its Taylor coefficents are nan."
    211                 );
    212208        }
     209        CPPAD_ASSERT_KNOWN( ! ( hasnan(value) && check_for_nan_ ) ,
     210                "dw = f.Reverse(p, w): has a nan,\n"
     211                "but none of its Taylor coefficents are nan."
     212        );
    213213
    214214        return value;
  • trunk/doc.omh

    r2859 r2897  
    5151$comment bin/version assumes that : follows cppad version number here$$
    5252$section
    53 cppad-20130527: A Package for Differentiation of C++ Algorithms
     53cppad-20130918: A Package for Differentiation of C++ Algorithms
    5454$$
    5555
  • trunk/example/atomic/CMakeLists.txt

    r2850 r2897  
    2020        atomic.cpp
    2121        checkpoint.cpp
     22        get_started.cpp
    2223        mat_mul.cpp
    2324        reciprocal.cpp
  • trunk/example/atomic/atomic.cpp

    r2850 r2897  
    2222// external complied tests
    2323extern bool checkpoint(void);
     24extern bool get_started(void);
    2425extern bool mat_mul(void);
    2526extern bool reciprocal(void);
     
    5859        // external compiled tests
    5960        ok &= Run( checkpoint,          "checkpoint"     );
     61        ok &= Run( get_started,         "get_started"    );
    6062        ok &= Run( mat_mul,             "mat_mul"        );
    6163        ok &= Run( reciprocal,          "reciprocal"     );
  • trunk/example/atomic/makefile.am

    r2850 r2897  
    2727        atomic.cpp \
    2828        checkpoint.cpp \
     29        get_started.cpp \
    2930        mat_mul.cpp \
    3031        reciprocal.cpp \
  • trunk/example/atomic/makefile.in

    r2885 r2897  
    6060CONFIG_CLEAN_VPATH_FILES =
    6161am_atomic_OBJECTS = atomic.$(OBJEXT) checkpoint.$(OBJEXT) \
    62         mat_mul.$(OBJEXT) reciprocal.$(OBJEXT) tangent.$(OBJEXT) \
    63         old_mat_mul.$(OBJEXT) old_reciprocal.$(OBJEXT) \
    64         old_tan.$(OBJEXT) old_usead_1.$(OBJEXT) old_usead_2.$(OBJEXT)
     62        get_started.$(OBJEXT) mat_mul.$(OBJEXT) reciprocal.$(OBJEXT) \
     63        tangent.$(OBJEXT) old_mat_mul.$(OBJEXT) \
     64        old_reciprocal.$(OBJEXT) old_tan.$(OBJEXT) \
     65        old_usead_1.$(OBJEXT) old_usead_2.$(OBJEXT)
    6566atomic_OBJECTS = $(am_atomic_OBJECTS)
    6667atomic_LDADD = $(LDADD)
     
    276277        atomic.cpp \
    277278        checkpoint.cpp \
     279        get_started.cpp \
    278280        mat_mul.cpp \
    279281        reciprocal.cpp \
     
    335337@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atomic.Po@am__quote@
    336338@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/checkpoint.Po@am__quote@
     339@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get_started.Po@am__quote@
    337340@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mat_mul.Po@am__quote@
    338341@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/old_mat_mul.Po@am__quote@
  • trunk/example/atomic/reciprocal.cpp

    r2868 r2897  
    372372        afun(ax, au);        // u = 1 / x
    373373
    374         // no use AD division to invert to invert the operation
     374        // now use AD division to invert to invert the operation
    375375        ay[0] = 1.0 / au[0]; // y = 1 / u = x
    376376
  • trunk/omh/atomic_base.omh

    r2864 r2897  
    8181$childtable%
    8282        cppad/local/atomic_base.hpp%
     83        example/atomic/get_started.cpp%
    8384        example/atomic/reciprocal.cpp%
    8485        example/atomic/tangent.cpp%
  • trunk/omh/example_list.omh

    r2892 r2897  
    9595$rref atan2.cpp$$
    9696$rref atan.cpp$$
     97$rref atomic_get_started.cpp$$
    9798$rref atomic_matrix_mul.hpp$$
     99$rref atomic_mat_mul.cpp$$
    98100$cref atomic_reciprocal.cpp$$
    99101$cref atomic_tangent.cpp$$
     
    166168$rref lu_solve.cpp$$
    167169$rref lu_vec_ad_ok.cpp$$
    168 $rref atomic_mat_mul.cpp$$
    169170$rref mul.cpp$$
    170171$rref mul_eq.cpp$$
  • trunk/omh/install/download.omh

    r2859 r2897  
    6161
    6262$table
    63 EPL License $pre  $$ $cnext $href%cppad-20130527.epl.tgz%$$
     63EPL License $pre  $$ $cnext $href%cppad-20130918.epl.tgz%$$
    6464$rnext
    65 GPL License $pre  $$ $cnext $href%cppad-20130527.gpl.tgz%$$
     65GPL License $pre  $$ $cnext $href%cppad-20130918.gpl.tgz%$$
    6666$tend
    6767
  • trunk/omh/whats_new/whats_new_13.omh

    r2896 r2897  
    5252assist you in learning about changes between various versions of CppAD.
    5353
    54 $head 09-17$$
    55 $list number$$
     54$head 09-18$$
     55$list number$$
     56There was a bug during the
     57$cref/checking for nan/check_for_nan/$$ during
     58$cref reverse$$ mode.
     59This has been fixed.
     60$lnext
    5661It appears, from inspecting the Ipopt source file
    5762$code Ipopt/src/Algorithm/IpIpoptAlg.cpp$$ that the option $code sb$$
Note: See TracChangeset for help on using the changeset viewer.