Changeset 3685 for trunk/test_more


Ignore:
Timestamp:
May 10, 2015 7:17:11 PM (5 years ago)
Author:
bradbell
Message:

merge to branch: trunk
from repository: https://github.com/coin-or/CppAD
start hash code: 4f37fd28086cb8ea9d063a034b715db0621a820f
end hash code: d05d8619fef372fa413f16d080f2d5d5b5b88d9a

commit d05d8619fef372fa413f16d080f2d5d5b5b88d9a
Author: Brad Bell <bradbell@…>
Date: Sun May 10 16:05:57 2015 -0700

Automatically generated changes to deprecated auto-tools install.


whats_new_15.omh: users view of previous commit.

commit dd1334fc159a40a4fc10bfb7a91a287000041a2d
Author: Brad Bell <bradbell@…>
Date: Sun May 10 15:34:18 2015 -0700

Convert all C++11 features into the single flag named CPPAD_USE_CPLUSPLUS_2011.


declare_ad.hpp: remove trailing white space.
erf.cpp: remove trailing white space.

commit de1a95c024247c2db37e15d5c2f34356f7be87ad
Author: Brad Bell <bradbell@…>
Date: Sun May 10 08:00:15 2015 -0700

doxyfile.sh: Get doxygen to include c++11 conditional information.

Location:
trunk/test_more
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/test_more/erf.cpp

    r3679 r3685  
    2020                using CppAD::exp;
    2121                using CppAD::sqrt;
    22         # if CPPAD_COMPILER_HAS_ERF
     22        # if CPPAD_USE_CPLUSPLUS_2011
    2323                double eps = 100.0 * std::numeric_limits<double>::epsilon();
    2424        # endif
     
    5151                check = df.Forward(0, x0);
    5252                ok   &= NearEqual(check[0], y1[0], 0., 2e-3);
    53         # if CPPAD_COMPILER_HAS_ERF
     53        # if CPPAD_USE_CPLUSPLUS_2011
    5454                ok   &= NearEqual(check[0], y1[0], eps, eps);
    5555        # endif
     
    6161                check = df.Forward(1, x1);
    6262                ok   &= NearEqual(check[0] / 2.0, y2[0], 0., 2e-3);
    63         # if CPPAD_COMPILER_HAS_ERF
     63        # if CPPAD_USE_CPLUSPLUS_2011
    6464                ok   &= NearEqual(check[0] / 2.0, y2[0], eps, eps);
    6565        # endif
     
    7171                check = df.Forward(2, x2);
    7272                ok   &= NearEqual(check[0] / 3.0, y3[0], 0., 2e-3);
    73         # if CPPAD_COMPILER_HAS_ERF
     73        # if CPPAD_USE_CPLUSPLUS_2011
    7474                ok   &= NearEqual(check[0] / 3.0, y3[0], eps, eps);
    7575        # endif
     
    8383                //
    8484                ok  &= NearEqual(dy[0], y1[0], 0., 2e-3);
    85         # if CPPAD_COMPILER_HAS_ERF
     85        # if CPPAD_USE_CPLUSPLUS_2011
    8686                ok  &= NearEqual(dy[0], y1[0], eps, eps);
    8787        # endif
    8888                //
    8989                ok  &= NearEqual(dy[1], 2.0 * y2[0], 0., 2e-3);
    90         # if CPPAD_COMPILER_HAS_ERF
     90        # if CPPAD_USE_CPLUSPLUS_2011
    9191                ok  &= NearEqual(dy[1], 2.0 * y2[0], eps, eps);
    9292        # endif
    9393                //
    9494                ok  &= NearEqual(dy[2], 3.0 * y3[0], 0., 2e-3);
    95         # if CPPAD_COMPILER_HAS_ERF
     95        # if CPPAD_USE_CPLUSPLUS_2011
    9696                ok  &= NearEqual(dy[2], 3.0 * y3[0], eps, eps);
    9797        # endif
    9898                //
    9999                ok  &= NearEqual(dy[3], 4.0 * y4[0], 0., 2e-3);
    100         # if CPPAD_COMPILER_HAS_ERF
     100        # if CPPAD_USE_CPLUSPLUS_2011
    101101                ok  &= NearEqual(dy[3], 4.0 * y4[0], eps, eps);
    102102        # endif
     
    104104                return ok;
    105105        }
    106 # if CPPAD_COMPILER_HAS_ERF
     106# if CPPAD_USE_CPLUSPLUS_2011
    107107        bool hessian(void)
    108108        {       bool ok = true;
     
    152152{       bool ok = true;
    153153        ok     &= old_example();
    154 # if CPPAD_COMPILER_HAS_ERF
     154# if CPPAD_USE_CPLUSPLUS_2011
    155155        ok     &= hessian();
    156156# endif
  • trunk/test_more/makefile.in

    r3684 r3685  
    353353cppad_SOURCE_DIR = @cppad_SOURCE_DIR@
    354354cppad_boostvector = @cppad_boostvector@
    355 cppad_compiler_has_acosh = @cppad_compiler_has_acosh@
    356 cppad_compiler_has_asinh = @cppad_compiler_has_asinh@
    357 cppad_compiler_has_atanh = @cppad_compiler_has_atanh@
    358 cppad_compiler_has_erf = @cppad_compiler_has_erf@
    359 cppad_compiler_has_expm1 = @cppad_compiler_has_expm1@
    360 cppad_compiler_has_log1p = @cppad_compiler_has_log1p@
    361355cppad_cppadvector = @cppad_cppadvector@
    362356cppad_cxx_flags = @cppad_cxx_flags@
     
    380374cppad_tape_id_type = @cppad_tape_id_type@
    381375cppad_url = @cppad_url@
     376cppad_use_cplusplus_2011 = @cppad_use_cplusplus_2011@
    382377cppad_version = @cppad_version@
    383378datadir = @datadir@
  • trunk/test_more/optimize.cpp

    r3669 r3685  
    573573        {       // erf function is a special case for optimize
    574574                bool ok = true;
    575 # if CPPAD_COMPILER_HAS_ERF
     575# if CPPAD_USE_CPLUSPLUS_2011
    576576                using CppAD::AD;
    577577                using CppAD::vector;
Note: See TracChangeset for help on using the changeset viewer.