Changeset 2792 for trunk/test_more


Ignore:
Timestamp:
Apr 28, 2013 5:25:28 AM (7 years ago)
Author:
bradbell
Message:
  1. Fix bug demonstrated by bug/eigen_io.sh.
  2. Add eigen and sacado automated tests to jenkins.sh.
  3. Advance version number to cppad-20130428

check_include_omh.sh: add missing file to list.
eigen_io.sh: closer to case originally reported, remove temporary files.
cppad_eigen.cpp: automated test that also demonstrated problem.
get_ipopt.sh: make 'cannot update source' a warning (not error).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test_more/cppad_eigen.cpp

    r2506 r2792  
    11/* $Id$ */
    22/* --------------------------------------------------------------------------
    3 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-12 Bradley M. Bell
     3CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-13 Bradley M. Bell
    44
    55CppAD is distributed under multiple licenses. This distribution is under
     
    4444                std::numeric_limits<double>::min();
    4545
    46         CppAD::AD<double> x = 2.0;
     46        AD<double> x = 2.0;
    4747        ok  &= conj(x)  == x;
    4848        ok  &= real(x)  == x;
     
    5050        ok  &= abs2(x)  == 4.0;
    5151
     52        // Outputing a matrix used to fail before paritali specialization of
     53        // struct significant_decimals_default_impl in cppad_eigen.hpp.
     54        Eigen::Matrix< AD<double>, 1, 1> X;
     55        X(0, 0) = AD<double>(1);
     56        std::stringstream stream_out;
     57        stream_out << X;
     58        ok &= "1" == stream_out.str();
     59       
    5260        return ok;
    5361}
Note: See TracChangeset for help on using the changeset viewer.