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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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);
Note: See TracChangeset for help on using the changeset viewer.