Changeset 3071


Ignore:
Timestamp:
Dec 31, 2013 11:02:27 PM (6 years ago)
Author:
bradbell
Message:

test_one.sh.in: update choices when compiling eigen versus not.
whats_new_13.omh: improve discussion of eigen.
mul_level.cpp: test conversion from double to AD<AD<double>>.
test_one.sh.in: update choices when compiling eigen versus not.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/example/test_one.sh.in

    r2940 r3071  
    4242if echo "$fun" | grep 'eigen' > /dev/null
    4343then
    44         cxxflags='-g -Wall -ansi -pedantic-errors -Wno-long-long'
     44        cxxflags='-g -Wall -ansi -pedantic-errors'
    4545else
    4646        cxxflags='-g -Wall -ansi -pedantic-errors -Wshadow'
  • trunk/omh/whats_new/whats_new_13.omh

    r3070 r3071  
    6767The include file
    6868$cref cppad_eigen.hpp$$ now automatically includes $code cppad.hpp$$.
     69$lnext
    6970There was a problem with this automation
    70 when $code eigen$$ was used for the cppad
    71 $cref testvector$$.
     71when $code eigen$$ was used for the cppad $cref testvector$$.
    7272This has been fixed.
    7373$lnext
     
    8282implicit, but there was no specification to this effect.
    8383The caused problems when using CppAD with
    84 $cref/eigen/eigen_prefix/$$.
     84$cref/eigen 3.2/eigen_prefix/$$ (scheduled to be fixed in 3.3).
    8585The default for this constructor has been changed to be
    8686$cref/explicit/ad_ctor/x/explicit/$$.
     
    9191
    9292$$
    93 If you get a compiler error on an assignment to an
    94 $icode%AD%<%Base%>%$$ variable (that used to work)
    95 try an explicit conversion to
    96 $icode Base$$ or $codei%AD<%Base%>%$$ before the assignment.
     93If you get a compiler error on an constructor / assignment of the form
     94$codei%
     95        AD<%Base%> x = %y%
     96%$$
     97(that used to work) try changing the constructor call to
     98$codei%
     99        AD<%Base%>( %y% )
     100%$$
    97101A deprecated alternative is to make this constructor implicit using the
    98102$cref/cppad_implicit_ctor_from_any_type
  • trunk/test_more/mul_level.cpp

    r2794 r3071  
    3636        size_t n = 2;                            // dimension for example
    3737
    38         CPPAD_TESTVECTOR(ADdouble)   a_x(n);
     38        // value of the independent variables
    3939        CPPAD_TESTVECTOR(ADDdouble) aa_x(n);
    40 
    41         // value of the independent variables
    42         a_x[0] = 2.; a_x[1] = 3.;
    43         Independent(a_x);
    44         aa_x[0] = a_x[0]; aa_x[1] = a_x[1];
     40        aa_x[0] = 1.; aa_x[1] = 3.; // test conversion double to AD< AD<double> >
     41        aa_x[0] = 2. * aa_x[0];     // test double * AD< AD<double> >
    4542        CppAD::Independent(aa_x);
    4643
     
    5047        CppAD::ADFun<ADdouble> F(aa_x, aa_f);
    5148
    52         // re-evaluate f(2, 3) (must get proper deepedence on a_x).
     49        // value of the independent variables
     50        CPPAD_TESTVECTOR(ADdouble)   a_x(n);
     51        a_x[0] = 2.; a_x[1] = 3.;
     52        Independent(a_x);
     53
     54        // re-evaluate f(2, 3) (must get deepedence on a_x).
    5355        size_t p = 0;
    5456        CPPAD_TESTVECTOR(ADdouble) a_fp(1);
  • trunk/test_more/test_one.sh.in

    r2940 r3071  
    3838if echo "$fun" | grep 'eigen' > /dev/null
    3939then
    40         cxxflags='-g -Wall -ansi -pedantic-errors -Wno-long-long'
     40        cxxflags='-g -Wall -ansi -pedantic-errors'
    4141else
    4242        cxxflags='-g -Wall -ansi -pedantic-errors -Wshadow'
Note: See TracChangeset for help on using the changeset viewer.