Changeset 3685


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
Files:
61 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/doxyfile.sh

    r3675 r3685  
    2626error_file="$2"
    2727output_directory="$3"
     28# PREDEFINED:see http://www.stack.nl/~dimitri/doxygen/manual/preprocessing.html
    2829# 2DO: change EXTRACT_ALL to NO so get warnings for undocumented functions.
    2930echo "create bin/doxyfile.$$"
     
    3132ALWAYS_DETAILED_SEC     = YES
    3233BUILTIN_STL_SUPPORT     = YES
     34ENABLE_PREPROCESSING    = YES
     35EXPAND_ONLY_PREDEF      = YES
    3336EXTRACT_ALL             = YES
    3437EXTRACT_LOCAL_CLASSES   = YES
     
    5053        ./speed/src
    5154LATEX_BATCHMODE         = YES
     55MACRO_EXPANSION         = YES
    5256MULTILINE_CPP_IS_BRIEF  = YES
    5357OUTPUT_DIRECTORY        = $output_directory
     58PREDEFINED              = "__cplusplus=201103"
    5459PROJECT_NAME            = "CppAD: A C++ Algorithmic Differentiation Package"
    5560PROJECT_NUMBER          = $version
  • trunk/compare_c/makefile.in

    r3684 r3685  
    265265cppad_SOURCE_DIR = @cppad_SOURCE_DIR@
    266266cppad_boostvector = @cppad_boostvector@
    267 cppad_compiler_has_acosh = @cppad_compiler_has_acosh@
    268 cppad_compiler_has_asinh = @cppad_compiler_has_asinh@
    269 cppad_compiler_has_atanh = @cppad_compiler_has_atanh@
    270 cppad_compiler_has_erf = @cppad_compiler_has_erf@
    271 cppad_compiler_has_expm1 = @cppad_compiler_has_expm1@
    272 cppad_compiler_has_log1p = @cppad_compiler_has_log1p@
    273267cppad_cppadvector = @cppad_cppadvector@
    274268cppad_cxx_flags = @cppad_cxx_flags@
     
    292286cppad_tape_id_type = @cppad_tape_id_type@
    293287cppad_url = @cppad_url@
     288cppad_use_cplusplus_2011 = @cppad_use_cplusplus_2011@
    294289cppad_version = @cppad_version@
    295290datadir = @datadir@
  • trunk/configure

    r3684 r3685  
    668668CPP
    669669cppad_has_high_resolution_clock
    670 cppad_compiler_has_log1p
    671 cppad_compiler_has_expm1
    672 cppad_compiler_has_atanh
    673 cppad_compiler_has_acosh
    674 cppad_compiler_has_asinh
    675 cppad_compiler_has_erf
     670cppad_use_cplusplus_2011
    676671cppad_has_cstdint_8_to_64
    677672cppad_has_rvalue
     
    54835478cppad_has_cstdint_8_to_64=0
    54845479
    5485 cppad_compiler_has_erf=0
    5486 
    5487 cppad_compiler_has_asinh=0
    5488 
    5489 cppad_compiler_has_acosh=0
    5490 
    5491 cppad_compiler_has_atanh=0
    5492 
    5493 cppad_compiler_has_expm1=0
    5494 
    5495 cppad_compiler_has_log1p=0
     5480cppad_use_cplusplus_2011=0
    54965481
    54975482cppad_has_high_resolution_clock=0
  • trunk/configure.ac

    r3684 r3685  
    494494AC_SUBST(cppad_has_rvalue, 0)
    495495AC_SUBST(cppad_has_cstdint_8_to_64, 0)
    496 AC_SUBST(cppad_compiler_has_erf, 0)
    497 AC_SUBST(cppad_compiler_has_asinh, 0)
    498 AC_SUBST(cppad_compiler_has_acosh, 0)
    499 AC_SUBST(cppad_compiler_has_atanh, 0)
    500 AC_SUBST(cppad_compiler_has_expm1, 0)
    501 AC_SUBST(cppad_compiler_has_log1p, 0)
     496AC_SUBST(cppad_use_cplusplus_2011, 0)
    502497AC_SUBST(cppad_has_high_resolution_clock, 0)
    503498
  • trunk/cppad/CMakeLists.txt

    r3684 r3685  
    108108# =============================================================================
    109109# Begin C++11 features
     110#
     111SET(cppad_cplusplus_201100_ok 1)
    110112# -----------------------------------------------------------------------------
    111113# cppad_has_rvalue
     
    120122)
    121123check_source_runs("${source}" cppad_has_rvalue)
     124IF( NOT cppad_has_rvalue )
     125        SET(cppad_cplusplus_201100_ok 0)
     126ENDIF( NOT cppad_has_rvalue )
    122127# -----------------------------------------------------------------------------
    123128# cppad_has_nullptr
     
    130135)
    131136check_source_runs("${source}" cppad_has_nullptr)
     137IF( NOT cppad_has_nullptr )
     138        SET(cppad_cplusplus_201100_ok 0)
     139ENDIF( NOT cppad_has_nullptr )
    132140# -----------------------------------------------------------------------------
    133141# cppad_has_cstdint_8_to_64
     
    145153)
    146154check_source_runs("${source}" cppad_has_cstdint_8_to_64)
     155IF( NOT cppad_has_cstdint_8_to_64 )
     156        SET(cppad_cplusplus_201100_ok 0)
     157ENDIF( NOT cppad_has_cstdint_8_to_64 )
    147158# -----------------------------------------------------------------------------
    148159# cppad_compiler_has_erf
     
    164175        # really only checking if program compiles
    165176        check_source_runs("${source}" cppad_compiler_has_${c11_function} )
     177        IF( NOT cppad_compiler_has_${c11_function} )
     178                SET(cppad_cplusplus_201100_ok 0)
     179        ENDIF( NOT cppad_compiler_has_${c11_function} )
    166180ENDFOREACH(c11_function)
    167181# -----------------------------------------------------------------------------
     
    183197)
    184198check_source_runs("${source}" cppad_has_high_resolution_clock)
     199IF( NOT cppad_has_high_resolution_clock )
     200        SET(cppad_cplusplus_201100_ok 0)
     201ENDIF( NOT cppad_has_high_resolution_clock )
    185202# =============================================================================
    186203# End C++11 features
     204#
     205MESSAGE(STATUS "cppad_cplusplus_201100_ok = ${cppad_cplusplus_201100_ok}")
    187206# -----------------------------------------------------------------------------
    188207# cppad_has_gettimeofday
  • trunk/cppad/configure.hpp.in

    r3684 r3685  
    3939*/
    4040
     41/*!
     42\def CPPAD_USE_CPLUSPLUS_2011
     43Should CppAD use C++11 features. This will be true if the current
     44compiler flags request C++11 features and the install procedure
     45determined that all the necessary features are avaiable.
     46*/
    4147# if __cplusplus >= 201100
    42 /*!
    43 \def CPPAD_HAS_RVALUE
    44 C++11: Does compiler cupport rvalues; i.e., values with move semantics
    45 */
    46 # define CPPAD_HAS_RVALUE @cppad_has_rvalue@
    47 # endif
    48 
    49 # if __cplusplus >= 201100
    50 /*!
    51 def CPPAD_HAS_NULLPTR
    52 C++11: Does compiler support the null-pointer constant nullptr
    53 */
    54 # define CPPAD_HAS_NULLPTR @cppad_has_nullptr@
    55 # endif
    56 
    57 # if __cplusplus >= 201100
    58 /*!
    59 \def CPPAD_HAS_CSTDINT_8_TO_64
    60 C++11: Does compiler support the types uint_8, uint_16, uint_32, and uint_64
    61 */
    62 # define CPPAD_HAS_CSTDINT_8_TO_64 @cppad_has_cstdint_8_to_64@
    63 # endif
    64 
    65 # if __cplusplus >= 201100
    66 /*!
    67 \def CPPAD_COMPILER_HAS_ERF
    68 C++11: Does compiler support std::erf(double)
    69 */
    70 # define CPPAD_COMPILER_HAS_ERF @cppad_compiler_has_erf@
    71 # endif
    72 
    73 # if __cplusplus >= 201100
    74 /*!
    75 \def CPPAD_COMPILER_HAS_ASINH
    76 C++11: Does compiler support std::asinh(double)
    77 */
    78 # define CPPAD_COMPILER_HAS_ASINH @cppad_compiler_has_asinh@
    79 # endif
    80 
    81 # if __cplusplus >= 201100
    82 /*!
    83 \def CPPAD_COMPILER_HAS_ACOSH
    84 C++11: Does compiler support std::acosh(double)
    85 */
    86 # define CPPAD_COMPILER_HAS_ACOSH @cppad_compiler_has_acosh@
    87 # endif
    88 
    89 # if __cplusplus >= 201100
    90 /*!
    91 \def CPPAD_COMPILER_HAS_ATANH
    92 C++11: Does compiler support std::atanh(double)
    93 */
    94 # define CPPAD_COMPILER_HAS_ATANH @cppad_compiler_has_atanh@
    95 # endif
    96 
    97 # if __cplusplus >= 201100
    98 /*!
    99 \def CPPAD_COMPILER_HAS_EXPM1
    100 C++11: Does compiler support std::expm1(double)
    101 */
    102 # define CPPAD_COMPILER_HAS_EXPM1 @cppad_compiler_has_expm1@
    103 # endif
    104 
    105 # if __cplusplus >= 201100
    106 /*!
    107 \def CPPAD_COMPILER_HAS_LOG1P
    108 C++11: Does compiler support std::log1p(double)
    109 */
    110 # define CPPAD_COMPILER_HAS_LOG1P @cppad_compiler_has_log1p@
    111 # endif
    112 
    113 # if __cplusplus >= 201100
    114 /*!
    115 \def CPPAD_HAS_HIGH_RESOLUTION_CLOCK
    116 C++11: Does compiler support std::chrono::high_resolution_clock
    117 */
    118 # define CPPAD_HAS_HIGH_RESOLUTION_CLOCK @cppad_has_high_resolution_clock@
     48# define CPPAD_USE_CPLUSPLUS_2011 @cppad_cplusplus_201100_ok@
     49# else
     50# define CPPAD_USE_CPLUSPLUS_2011 0
    11951# endif
    12052
  • trunk/cppad/example/base_adolc.hpp

    r3684 r3685  
    240240        return 0.0;                                               \
    241241    }
    242 # if CPPAD_COMPILER_HAS_ERF
     242# if CPPAD_USE_CPLUSPLUS_2011
    243243        CPPAD_BASE_ADOLC_NO_SUPPORT(erf)
    244 # endif
    245 # if CPPAD_COMPILER_HAS_ASINH
    246244        CPPAD_BASE_ADOLC_NO_SUPPORT(asinh)
    247 # endif
    248 # if CPPAD_COMPILER_HAS_ACOSH
    249245        CPPAD_BASE_ADOLC_NO_SUPPORT(acosh)
    250 # endif
    251 # if CPPAD_COMPILER_HAS_ATANH
    252246        CPPAD_BASE_ADOLC_NO_SUPPORT(atanh)
    253 # endif
    254 # if CPPAD_COMPILER_HAS_EXPM1
    255247        CPPAD_BASE_ADOLC_NO_SUPPORT(expm1)
    256 # endif
    257 # if CPPAD_COMPILER_HAS_LOG1P
    258248        CPPAD_BASE_ADOLC_NO_SUPPORT(log1p)
    259249# endif
  • trunk/cppad/local/acosh.hpp

    r3680 r3685  
    4848
    4949
    50 $head CPPAD_COMPILER_HAS_ACOSH$$
     50$head CPPAD_USE_CPLUSPLUS_2011$$
    5151This preprocessor symbol is one if
    5252the function $codei%std::acosh(double %x%)%$$ is defined the in the
     
    7878*/
    7979# include <cppad/configure.hpp>
    80 # if ! CPPAD_COMPILER_HAS_ACOSH
     80# if ! CPPAD_USE_CPLUSPLUS_2011
    8181
    8282// BEGIN CppAD namespace
     
    105105} // END CppAD namespace
    106106
    107 # endif // CPPAD_COMPILER_HAS_ACOSH
     107# endif // CPPAD_USE_CPLUSPLUS_2011
    108108# endif // CPPAD_ACOSH_INCLUDED
  • trunk/cppad/local/acosh_op.hpp

    r3682 r3685  
    22# ifndef CPPAD_ACOSH_OP_INCLUDED
    33# define CPPAD_ACOSH_OP_INCLUDED
    4 # if CPPAD_COMPILER_HAS_ACOSH
     4# if CPPAD_USE_CPLUSPLUS_2011
    55
    66/* --------------------------------------------------------------------------
  • trunk/cppad/local/ad.hpp

    r3684 r3685  
    206206        inline AD tan(void) const;
    207207        inline AD tanh(void) const;
    208 # if CPPAD_COMPILER_HAS_ERF
     208# if CPPAD_USE_CPLUSPLUS_2011
    209209        inline AD erf(void) const;
    210 # endif
    211 # if CPPAD_COMPILER_HAS_ASINH
    212210        inline AD asinh(void) const;
    213 # endif
    214 # if CPPAD_COMPILER_HAS_ACOSH
    215211        inline AD acosh(void) const;
    216 # endif
    217 # if CPPAD_COMPILER_HAS_ATANH
    218212        inline AD atanh(void) const;
    219 # endif
    220 # if CPPAD_COMPILER_HAS_EXPM1
    221213        inline AD expm1(void) const;
    222 # endif
    223 # if CPPAD_COMPILER_HAS_LOG1P
    224214        inline AD log1p(void) const;
    225215# endif
  • trunk/cppad/local/asinh.hpp

    r3677 r3685  
    4848
    4949
    50 $head CPPAD_COMPILER_HAS_ASINH$$
     50$head CPPAD_USE_CPLUSPLUS_2011$$
    5151This preprocessor symbol is one if
    5252the function $codei%std::asinh(double %x%)%$$ is defined the in the
     
    7878*/
    7979# include <cppad/configure.hpp>
    80 # if ! CPPAD_COMPILER_HAS_ASINH
     80# if ! CPPAD_USE_CPLUSPLUS_2011
    8181
    8282// BEGIN CppAD namespace
     
    105105} // END CppAD namespace
    106106
    107 # endif // CPPAD_COMPILER_HAS_ASINH
     107# endif // CPPAD_USE_CPLUSPLUS_2011
    108108# endif // CPPAD_ASINH_INCLUDED
  • trunk/cppad/local/asinh_op.hpp

    r3680 r3685  
    22# ifndef CPPAD_ASINH_OP_INCLUDED
    33# define CPPAD_ASINH_OP_INCLUDED
    4 # if CPPAD_COMPILER_HAS_ASINH
     4# if CPPAD_USE_CPLUSPLUS_2011
    55
    66/* --------------------------------------------------------------------------
  • trunk/cppad/local/atanh.hpp

    r3682 r3685  
    4949
    5050
    51 $head CPPAD_COMPILER_HAS_ATANH$$
     51$head CPPAD_USE_CPLUSPLUS_2011$$
    5252This preprocessor symbol is one if
    5353the function $codei%std::atanh(double %x%)%$$ is defined the in the
     
    7979*/
    8080# include <cppad/configure.hpp>
    81 # if ! CPPAD_COMPILER_HAS_ATANH
     81# if ! CPPAD_USE_CPLUSPLUS_2011
    8282
    8383// BEGIN CppAD namespace
     
    106106} // END CppAD namespace
    107107
    108 # endif // CPPAD_COMPILER_HAS_ATANH
     108# endif // CPPAD_USE_CPLUSPLUS_2011
    109109# endif // CPPAD_ATANH_INCLUDED
  • trunk/cppad/local/atanh_op.hpp

    r3682 r3685  
    22# ifndef CPPAD_ATANH_OP_INCLUDED
    33# define CPPAD_ATANH_OP_INCLUDED
    4 # if CPPAD_COMPILER_HAS_ATANH
     4# if CPPAD_USE_CPLUSPLUS_2011
    55
    66/* --------------------------------------------------------------------------
  • trunk/cppad/local/base_complex.hpp

    r3684 r3685  
    236236        CPPAD_USER_MACRO(atan)
    237237        CPPAD_USER_MACRO(sign)
    238 # if CPPAD_COMPILER_HAS_ERF
     238# if CPPAD_USE_CPLUSPLUS_2011
    239239        CPPAD_USER_MACRO(erf)
    240 # endif
    241 # if CPPAD_COMPILER_HAS_ASINH
    242240        CPPAD_USER_MACRO(asinh)
    243 # endif
    244 # if CPPAD_COMPILER_HAS_ACOSH
    245241        CPPAD_USER_MACRO(acosh)
    246 # endif
    247 # if CPPAD_COMPILER_HAS_ATANH
    248242        CPPAD_USER_MACRO(atanh)
    249 # endif
    250 # if CPPAD_COMPILER_HAS_EXPM1
    251243        CPPAD_USER_MACRO(expm1)
    252 # endif
    253 # if CPPAD_COMPILER_HAS_LOG1P
    254244        CPPAD_USER_MACRO(log1p)
    255245# endif
  • trunk/cppad/local/base_double.hpp

    r3684 r3685  
    150150        CPPAD_STANDARD_MATH_UNARY(double, tan)
    151151        CPPAD_STANDARD_MATH_UNARY(double, tanh)
    152 # if CPPAD_COMPILER_HAS_ERF
     152# if CPPAD_USE_CPLUSPLUS_2011
    153153        CPPAD_STANDARD_MATH_UNARY(double, erf)
    154 # endif
    155 # if CPPAD_COMPILER_HAS_ASINH
    156154        CPPAD_STANDARD_MATH_UNARY(double, asinh)
    157 # endif
    158 # if CPPAD_COMPILER_HAS_ACOSH
    159155        CPPAD_STANDARD_MATH_UNARY(double, acosh)
    160 # endif
    161 # if CPPAD_COMPILER_HAS_ATANH
    162156        CPPAD_STANDARD_MATH_UNARY(double, atanh)
    163 # endif
    164 # if CPPAD_COMPILER_HAS_EXPM1
    165157        CPPAD_STANDARD_MATH_UNARY(double, expm1)
    166 # endif
    167 # if CPPAD_COMPILER_HAS_LOG1P
    168158        CPPAD_STANDARD_MATH_UNARY(double, log1p)
    169159# endif
  • trunk/cppad/local/base_float.hpp

    r3684 r3685  
    151151        CPPAD_STANDARD_MATH_UNARY(float, tan)
    152152        CPPAD_STANDARD_MATH_UNARY(float, tanh)
    153 # if CPPAD_COMPILER_HAS_ERF
     153# if CPPAD_USE_CPLUSPLUS_2011
    154154        CPPAD_STANDARD_MATH_UNARY(float, erf)
    155 # endif
    156 # if CPPAD_COMPILER_HAS_ASINH
    157155        CPPAD_STANDARD_MATH_UNARY(float, asinh)
    158 # endif
    159 # if CPPAD_COMPILER_HAS_ACOSH
    160156        CPPAD_STANDARD_MATH_UNARY(float, acosh)
    161 # endif
    162 # if CPPAD_COMPILER_HAS_ATANH
    163157        CPPAD_STANDARD_MATH_UNARY(float, atanh)
    164 # endif
    165 # if CPPAD_COMPILER_HAS_EXPM1
    166158        CPPAD_STANDARD_MATH_UNARY(float, expm1)
    167 # endif
    168 # if CPPAD_COMPILER_HAS_LOG1P
    169159        CPPAD_STANDARD_MATH_UNARY(float, log1p)
    170160# endif
  • trunk/cppad/local/base_std_math.hpp

    r3684 r3685  
    9999$table
    100100$icode%fun%   %$$ $cnext  $icode symbol$$                $rnext
    101 $code erf$$       $cnext  $code CPPAD_COMPILER_HAS_ERF$$ $rnext
    102 $code asinh$$     $cnext  $code CPPAD_COMPILER_HAS_ASINH$$ $rnext
    103 $code acosh$$     $cnext  $code CPPAD_COMPILER_HAS_ACOSH$$ $rnext
    104 $code atanh$$     $cnext  $code CPPAD_COMPILER_HAS_ATANH$$ $rnext
    105 $code expm1$$     $cnext  $code CPPAD_COMPILER_HAS_EXPM1$$ $rnext
    106 $code log1p$$     $cnext  $code CPPAD_COMPILER_HAS_LOG1P$$
     101$code erf$$       $cnext  $code CPPAD_USE_CPLUSPLUS_2011$$ $rnext
     102$code asinh$$     $cnext  $code CPPAD_USE_CPLUSPLUS_2011$$ $rnext
     103$code acosh$$     $cnext  $code CPPAD_USE_CPLUSPLUS_2011$$ $rnext
     104$code atanh$$     $cnext  $code CPPAD_USE_CPLUSPLUS_2011$$ $rnext
     105$code expm1$$     $cnext  $code CPPAD_USE_CPLUSPLUS_2011$$ $rnext
     106$code log1p$$     $cnext  $code CPPAD_USE_CPLUSPLUS_2011$$
    107107$tend
    108108If the corresponding symbol is true,
  • trunk/cppad/local/declare_ad.hpp

    r3476 r3685  
    44
    55/* --------------------------------------------------------------------------
    6 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-13 Bradley M. Bell
     6CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-15 Bradley M. Bell
    77
    88CppAD is distributed under multiple licenses. This distribution is under
    9 the terms of the 
     9the terms of the
    1010                    Eclipse Public License Version 1.0.
    1111
     
    1515
    1616# include <cppad/configure.hpp>
    17 # if CPPAD_HAS_CSTDINT_8_TO_64
     17# if CPPAD_USE_CPLUSPLUS_2011
    1818# include <cstdint>
    1919# endif
     
    2121namespace CppAD {
    2222        // The conditional expression operator enum type
    23         enum CompareOp 
     23        enum CompareOp
    2424        {       CompareLt, // less than
    2525                CompareLe, // less than or equal
     
    5050        template <class Base> bool Parameter         (const VecAD<Base> &u);
    5151        template <class Base> bool Variable          (const VecAD<Base> &u);
    52        
     52
    5353        // functions with one AD<Base> argument
    5454        template <class Base> int  Integer           (const AD<Base> &u);
     
    114114        template <class Base> bool NearEqual(
    115115        const AD<Base> &x, const Base &y, const Base &r, const Base &a);
    116        
     116
    117117        // CondExpOp
    118118        template <class Base> AD<Base> CondExpOp (
    119119                enum CompareOp         cop ,
    120                 const AD<Base>       &left , 
    121                 const AD<Base>      &right , 
    122                 const AD<Base>   &trueCase , 
    123                 const AD<Base>  &falseCase 
     120                const AD<Base>       &left ,
     121                const AD<Base>      &right ,
     122                const AD<Base>   &trueCase ,
     123                const AD<Base>  &falseCase
    124124        );
    125        
     125
    126126        // IdenticalEqualPar
    127         template <class Base> 
     127        template <class Base>
    128128        bool IdenticalEqualPar (const AD<Base> &u, const AD<Base> &v);
    129        
     129
    130130        // EqualOpSeq
    131         template <class Base> 
     131        template <class Base>
    132132        bool EqualOpSeq (const AD<Base> &u, const AD<Base> &v);
    133        
     133
    134134        // PrintFor
    135         template <class Base> 
     135        template <class Base>
    136136        void PrintFor(
    137137                const AD<Base>&    flag   ,
    138138                const char*        before ,
    139                 const AD<Base>&    var    , 
     139                const AD<Base>&    var    ,
    140140                const char*        after
    141141        );
  • trunk/cppad/local/erf.hpp

    r3675 r3685  
    6363$head Method$$
    6464
    65 $subhead CPPAD_COMPILER_HAS_ERF$$
    66 $index CPPAD_COMPILER_HAS_ERF$$
     65$subhead CPPAD_USE_CPLUSPLUS_2011$$
     66$index CPPAD_USE_CPLUSPLUS_2011$$
    6767This preprocessor symbol is one if
    6868the function $codei%std::erf(double %x%)%$$ is defined the in the
     
    9898*/
    9999# include <cppad/configure.hpp>
    100 # if ! CPPAD_COMPILER_HAS_ERF
     100# if ! CPPAD_USE_CPLUSPLUS_2011
    101101
    102102// BEGIN CppAD namespace
     
    129129} // END CppAD namespace
    130130
    131 # endif // CPPAD_COMPILER_HAS_ERF
     131# endif // CPPAD_USE_CPLUSPLUS_2011
    132132# endif // CPPAD_ERF_INCLUDED
  • trunk/cppad/local/erf_op.hpp

    r3667 r3685  
    22# ifndef CPPAD_ERF_OP_INCLUDED
    33# define CPPAD_ERF_OP_INCLUDED
    4 # if CPPAD_COMPILER_HAS_ERF
     4# if CPPAD_USE_CPLUSPLUS_2011
    55
    66/* --------------------------------------------------------------------------
     
    426426
    427427} // END_CPPAD_NAMESPACE
    428 # endif // CPPAD_COMPILER_HAS_ERF
     428# endif // CPPAD_USE_CPLUSPLUS_2011
    429429# endif // CPPAD_ERF_OP_INCLUDED
  • trunk/cppad/local/expm1.hpp

    r3684 r3685  
    5050
    5151
    52 $head CPPAD_COMPILER_HAS_EXPM1$$
     52$head CPPAD_USE_CPLUSPLUS_2011$$
    5353This preprocessor symbol is one if
    5454the function $codei%std::expm1(double %x%)%$$ is defined the in the
     
    8080*/
    8181# include <cppad/configure.hpp>
    82 # if ! CPPAD_COMPILER_HAS_EXPM1
     82# if ! CPPAD_USE_CPLUSPLUS_2011
    8383
    8484// BEGIN CppAD namespace
     
    107107} // END CppAD namespace
    108108
    109 # endif // CPPAD_COMPILER_HAS_EXPM1
     109# endif // CPPAD_USE_CPLUSPLUS_2011
    110110# endif // CPPAD_EXPM1_INCLUDED
  • trunk/cppad/local/expm1_op.hpp

    r3683 r3685  
    22# ifndef CPPAD_EXPM1_OP_INCLUDED
    33# define CPPAD_EXPM1_OP_INCLUDED
    4 # if CPPAD_COMPILER_HAS_EXPM1
     4# if CPPAD_USE_CPLUSPLUS_2011
    55
    66/* --------------------------------------------------------------------------
  • trunk/cppad/local/for_jac_sweep.hpp

    r3684 r3685  
    232232                        // -------------------------------------------------
    233233
    234 # if CPPAD_COMPILER_HAS_ACOSH
     234# if CPPAD_USE_CPLUSPLUS_2011
    235235                        case AcoshOp:
    236236                        // sqrt(x * x - 1), acosh(x)
     
    252252                        // -------------------------------------------------
    253253
    254 # if CPPAD_COMPILER_HAS_ASINH
     254# if CPPAD_USE_CPLUSPLUS_2011
    255255                        case AsinhOp:
    256256                        // sqrt(1 + x * x), asinh(x)
     
    272272                        // -------------------------------------------------
    273273
    274 # if CPPAD_COMPILER_HAS_ATANH
     274# if CPPAD_USE_CPLUSPLUS_2011
    275275                        case AtanhOp:
    276276                        // 1 - x * x, atanh(x)
     
    381381                        // -------------------------------------------------
    382382
    383 # if CPPAD_COMPILER_HAS_EXPM1
     383# if CPPAD_USE_CPLUSPLUS_2011
    384384                        case Expm1Op:
    385385                        CPPAD_ASSERT_NARG_NRES(op, 1, 1);
     
    445445                        // -------------------------------------------------
    446446
    447 # if CPPAD_COMPILER_HAS_LOG1P
     447# if CPPAD_USE_CPLUSPLUS_2011
    448448                        case Log1pOp:
    449449                        CPPAD_ASSERT_NARG_NRES(op, 1, 1);
  • trunk/cppad/local/forward0sweep.hpp

    r3684 r3685  
    310310                        // -------------------------------------------------
    311311
    312 # if CPPAD_COMPILER_HAS_ACOSH
     312# if CPPAD_USE_CPLUSPLUS_2011
    313313                        case AcoshOp:
    314314                        // sqrt(x * x - 1), acosh(x)
     
    326326                        // -------------------------------------------------
    327327
    328 # if CPPAD_COMPILER_HAS_ASINH
     328# if CPPAD_USE_CPLUSPLUS_2011
    329329                        case AsinhOp:
    330330                        // sqrt(1 + x * x), asinh(x)
     
    342342                        // -------------------------------------------------
    343343
    344 # if CPPAD_COMPILER_HAS_ATANH
     344# if CPPAD_USE_CPLUSPLUS_2011
    345345                        case AtanhOp:
    346346                        // 1 - x * x, atanh(x)
     
    448448                        // -------------------------------------------------
    449449
    450 # if CPPAD_COMPILER_HAS_ERF
     450# if CPPAD_USE_CPLUSPLUS_2011
    451451                        case ErfOp:
    452                         CPPAD_ASSERT_UNKNOWN( CPPAD_COMPILER_HAS_ERF );
     452                        CPPAD_ASSERT_UNKNOWN( CPPAD_USE_CPLUSPLUS_2011 );
    453453                        // 2DO: implement zero order version of this function
    454454                        forward_erf_op_0(i_var, arg, parameter, J, taylor);
     
    462462                        // -------------------------------------------------
    463463
    464 # if CPPAD_COMPILER_HAS_EXPM1
     464# if CPPAD_USE_CPLUSPLUS_2011
    465465                        case Expm1Op:
    466466                        forward_expm1_op_0(i_var, arg[0], J, taylor);
     
    545545                        // -------------------------------------------------
    546546
    547 # if CPPAD_COMPILER_HAS_LOG1P
     547# if CPPAD_USE_CPLUSPLUS_2011
    548548                        case Log1pOp:
    549549                        forward_log1p_op_0(i_var, arg[0], J, taylor);
  • trunk/cppad/local/forward1sweep.hpp

    r3684 r3685  
    360360                        // -------------------------------------------------
    361361
    362 # if CPPAD_COMPILER_HAS_ACOSH
     362# if CPPAD_USE_CPLUSPLUS_2011
    363363                        case AcoshOp:
    364364                        // sqrt(x * x - 1), acosh(x)
     
    376376                        // -------------------------------------------------
    377377
    378 # if CPPAD_COMPILER_HAS_ASINH
     378# if CPPAD_USE_CPLUSPLUS_2011
    379379                        case AsinhOp:
    380380                        // sqrt(1 + x * x), asinh(x)
     
    392392                        // -------------------------------------------------
    393393
    394 # if CPPAD_COMPILER_HAS_ATANH
     394# if CPPAD_USE_CPLUSPLUS_2011
    395395                        case AtanhOp:
    396396                        // 1 - x * x, atanh(x)
     
    496496                        // -------------------------------------------------
    497497
    498 # if CPPAD_COMPILER_HAS_ERF
     498# if CPPAD_USE_CPLUSPLUS_2011
    499499                        case ErfOp:
    500                         CPPAD_ASSERT_UNKNOWN( CPPAD_COMPILER_HAS_ERF );
     500                        CPPAD_ASSERT_UNKNOWN( CPPAD_USE_CPLUSPLUS_2011 );
    501501                        // 2DO: implement zero order version of this function
    502502                        forward_erf_op(p, q, i_var, arg, parameter, J, taylor);
     
    510510                        // ---------------------------------------------------
    511511
    512 # if CPPAD_COMPILER_HAS_EXPM1
     512# if CPPAD_USE_CPLUSPLUS_2011
    513513                        case Expm1Op:
    514514                        forward_expm1_op(p, q, i_var, arg[0], J, taylor);
     
    641641                        // -------------------------------------------------
    642642
    643 # if CPPAD_COMPILER_HAS_LOG1P
     643# if CPPAD_USE_CPLUSPLUS_2011
    644644                        case Log1pOp:
    645645                        forward_log1p_op(p, q, i_var, arg[0], J, taylor);
  • trunk/cppad/local/forward2sweep.hpp

    r3684 r3685  
    269269                        // -------------------------------------------------
    270270
    271 # if CPPAD_COMPILER_HAS_ACOSH
     271# if CPPAD_USE_CPLUSPLUS_2011
    272272                        case AcoshOp:
    273273                        // sqrt(x * x - 1), acosh(x)
     
    285285                        // -------------------------------------------------
    286286
    287 # if CPPAD_COMPILER_HAS_ASINH
     287# if CPPAD_USE_CPLUSPLUS_2011
    288288                        case AsinhOp:
    289289                        // sqrt(1 + x * x), asinh(x)
     
    301301                        // -------------------------------------------------
    302302
    303 # if CPPAD_COMPILER_HAS_ATANH
     303# if CPPAD_USE_CPLUSPLUS_2011
    304304                        case AtanhOp:
    305305                        // 1 - x * x, atanh(x)
     
    384384                        // -------------------------------------------------
    385385
    386 # if CPPAD_COMPILER_HAS_EXPM1
     386# if CPPAD_USE_CPLUSPLUS_2011
    387387                        case Expm1Op:
    388388                        forward_expm1_op_dir(q, r, i_var, arg[0], J, taylor);
     
    432432                        // ---------------------------------------------------
    433433
    434 # if CPPAD_COMPILER_HAS_LOG1P
     434# if CPPAD_USE_CPLUSPLUS_2011
    435435                        case Log1pOp:
    436436                        forward_log1p_op_dir(q, r, i_var, arg[0], J, taylor);
  • trunk/cppad/local/log1p.hpp

    r3684 r3685  
    4848
    4949
    50 $head CPPAD_COMPILER_HAS_LOG1P$$
     50$head CPPAD_USE_CPLUSPLUS_2011$$
    5151This preprocessor symbol is one if
    5252the function $codei%std::log1p(double %x%)%$$ is defined the in the
     
    6161CppAD uses the representation
    6262$latex \[
    63 \R{log1p} (x) = log(1 + x)
     63\R{log1p} (x) = \log(1 + x)
    6464\] $$
    6565to compute this function.
     
    7878*/
    7979# include <cppad/configure.hpp>
    80 # if ! CPPAD_COMPILER_HAS_LOG1P
     80# if ! CPPAD_USE_CPLUSPLUS_2011
    8181
    8282// BEGIN CppAD namespace
     
    105105} // END CppAD namespace
    106106
    107 # endif // CPPAD_COMPILER_HAS_LOG1P
     107# endif // CPPAD_USE_CPLUSPLUS_2011
    108108# endif // CPPAD_LOG1P_INCLUDED
  • trunk/cppad/local/log1p_op.hpp

    r3684 r3685  
    22# ifndef CPPAD_LOG1P_OP_INCLUDED
    33# define CPPAD_LOG1P_OP_INCLUDED
    4 # if CPPAD_COMPILER_HAS_LOG1P
     4# if CPPAD_USE_CPLUSPLUS_2011
    55
    66/* --------------------------------------------------------------------------
  • trunk/cppad/local/rev_hes_sweep.hpp

    r3684 r3685  
    254254                        // -------------------------------------------------
    255255
    256 # if CPPAD_COMPILER_HAS_ACOSH
     256# if CPPAD_USE_CPLUSPLUS_2011
    257257                        case AcoshOp:
    258258                        // sqrt(x * x - 1), acosh(x)
     
    274274                        // -------------------------------------------------
    275275
    276 # if CPPAD_COMPILER_HAS_ASINH
     276# if CPPAD_USE_CPLUSPLUS_2011
    277277                        case AsinhOp:
    278278                        // sqrt(1 + x * x), asinh(x)
     
    294294                        // -------------------------------------------------
    295295
    296 # if CPPAD_COMPILER_HAS_ATANH
     296# if CPPAD_USE_CPLUSPLUS_2011
    297297                        case AtanhOp:
    298298                        // 1 - x * x, atanh(x)
     
    403403                        // -------------------------------------------------
    404404
    405 # if CPPAD_COMPILER_HAS_EXPM1
     405# if CPPAD_USE_CPLUSPLUS_2011
    406406                        case Expm1Op:
    407407                        CPPAD_ASSERT_NARG_NRES(op, 1, 1)
     
    471471                        // -------------------------------------------------
    472472
    473 # if CPPAD_COMPILER_HAS_LOG1P
     473# if CPPAD_USE_CPLUSPLUS_2011
    474474                        case Log1pOp:
    475475                        CPPAD_ASSERT_NARG_NRES(op, 1, 1)
  • trunk/cppad/local/rev_jac_sweep.hpp

    r3684 r3685  
    243243                        // -------------------------------------------------
    244244
    245 # if CPPAD_COMPILER_HAS_ACOSH
     245# if CPPAD_USE_CPLUSPLUS_2011
    246246                        case AcoshOp:
    247247                        // sqrt(x * x - 1), acosh(x)
     
    263263                        // -------------------------------------------------
    264264
    265 # if CPPAD_COMPILER_HAS_ASINH
     265# if CPPAD_USE_CPLUSPLUS_2011
    266266                        case AsinhOp:
    267267                        // sqrt(1 + x * x), asinh(x)
     
    283283                        // -------------------------------------------------
    284284
    285 # if CPPAD_COMPILER_HAS_ATANH
     285# if CPPAD_USE_CPLUSPLUS_2011
    286286                        case AtanhOp:
    287287                        // 1 - x * x, atanh(x)
     
    392392                        // -------------------------------------------------
    393393
    394 # if CPPAD_COMPILER_HAS_EXPM1
     394# if CPPAD_USE_CPLUSPLUS_2011
    395395                        case Expm1Op:
    396396                        CPPAD_ASSERT_NARG_NRES(op, 1, 1);
     
    455455                        // -------------------------------------------------
    456456
    457 # if CPPAD_COMPILER_HAS_LOG1P
     457# if CPPAD_USE_CPLUSPLUS_2011
    458458                        case Log1pOp:
    459459                        CPPAD_ASSERT_NARG_NRES(op, 1, 1);
  • trunk/cppad/local/reverse_sweep.hpp

    r3684 r3685  
    309309                        // --------------------------------------------------
    310310
    311 # if CPPAD_COMPILER_HAS_ACOSH
     311# if CPPAD_USE_CPLUSPLUS_2011
    312312                        case AcoshOp:
    313313                        // sqrt(x * x - 1), acosh(x)
     
    344344                        // --------------------------------------------------
    345345
    346 # if CPPAD_COMPILER_HAS_ASINH
     346# if CPPAD_USE_CPLUSPLUS_2011
    347347                        case AsinhOp:
    348348                        // sqrt(1 + x * x), asinh(x)
     
    364364                        // -------------------------------------------------
    365365
    366 # if CPPAD_COMPILER_HAS_ATANH
     366# if CPPAD_USE_CPLUSPLUS_2011
    367367                        case AtanhOp:
    368368                        // 1 - x * x, atanh(x)
     
    465465                        // --------------------------------------------------
    466466
    467 # if CPPAD_COMPILER_HAS_ERF
     467# if CPPAD_USE_CPLUSPLUS_2011
    468468                        case ErfOp:
    469469                        reverse_erf_op(
     
    481481                        // --------------------------------------------------
    482482
    483 # if CPPAD_COMPILER_HAS_EXPM1
     483# if CPPAD_USE_CPLUSPLUS_2011
    484484                        case Expm1Op:
    485485                        reverse_expm1_op(
     
    528528                        // --------------------------------------------------
    529529
    530 # if CPPAD_COMPILER_HAS_LOG1P
     530# if CPPAD_USE_CPLUSPLUS_2011
    531531                        case Log1pOp:
    532532                        reverse_log1p_op(
  • trunk/cppad/local/std_math_ad.hpp

    r3684 r3685  
    316316     CPPAD_STANDARD_MATH_UNARY_AD(tanh, TanhOp)
    317317
    318 # if CPPAD_COMPILER_HAS_ASINH
     318# if CPPAD_USE_CPLUSPLUS_2011
    319319     CPPAD_STANDARD_MATH_UNARY_AD(asinh, AsinhOp)
    320 # endif
    321 # if CPPAD_COMPILER_HAS_ACOSH
    322320     CPPAD_STANDARD_MATH_UNARY_AD(acosh, AcoshOp)
    323 # endif
    324 # if CPPAD_COMPILER_HAS_ATANH
    325321     CPPAD_STANDARD_MATH_UNARY_AD(atanh, AtanhOp)
    326 # endif
    327 # if CPPAD_COMPILER_HAS_EXPM1
    328322     CPPAD_STANDARD_MATH_UNARY_AD(expm1, Expm1Op)
    329 # endif
    330 # if CPPAD_COMPILER_HAS_LOG1P
    331323     CPPAD_STANDARD_MATH_UNARY_AD(log1p, Log1pOp)
    332324# endif
    333325
    334 # if CPPAD_COMPILER_HAS_ERF
     326# if CPPAD_USE_CPLUSPLUS_2011
    335327        // Error function is a special case
    336328        template <class Base>
  • trunk/cppad/local/undef.hpp

    r3684 r3685  
    2626# undef CPPAD_BOOL_BINARY         in user api
    2727# undef CPPAD_BOOL_UNARY          in user api
    28 # undef CPPAD_COMPILER_HAS_ERF    in user api
    29 # undef CPPAD_COMPILER_HAS_ASINH  in user api
    30 # undef CPPAD_COMPILER_HAS_ACOSH  in user api
    31 # undef CPPAD_COMPILER_HAS_ATANH  in user api
    32 # undef CPPAD_COMPILER_HAS_EXPM1  in user api
    33 # undef CPPAD_COMPILER_HAS_LOG1P  in user api
     28# undef CPPAD_USE_CPLUSPLUS_2011  in user api
    3429# undef CPPAD_DISCRETE_FUNCTION   in user api
    3530# undef CPPAD_EIGENVECTOR         in user api
     
    7671# undef CPPAD_FOR_JAC_SWEEP_TRACE
    7772# undef CPPAD_HAS_COLPACK
    78 # undef CPPAD_HAS_CSTDINT_8_TO_64
    79 # undef CPPAD_HAS_RVALUE
    80 # undef CPPAD_HAS_HIGH_RESOLUTION_CLOCK
    8173# undef CPPAD_HAS_GETTIMEOFDAY
    82 # undef CPPAD_HAS_NULLPTR
    8374# undef CPPAD_INLINE_FRIEND_TEMPLATE_FUNCTION
    8475# undef CPPAD_MAX_NUM_CAPACITY
  • trunk/cppad_ipopt/example/makefile.in

    r3684 r3685  
    280280cppad_SOURCE_DIR = @cppad_SOURCE_DIR@
    281281cppad_boostvector = @cppad_boostvector@
    282 cppad_compiler_has_acosh = @cppad_compiler_has_acosh@
    283 cppad_compiler_has_asinh = @cppad_compiler_has_asinh@
    284 cppad_compiler_has_atanh = @cppad_compiler_has_atanh@
    285 cppad_compiler_has_erf = @cppad_compiler_has_erf@
    286 cppad_compiler_has_expm1 = @cppad_compiler_has_expm1@
    287 cppad_compiler_has_log1p = @cppad_compiler_has_log1p@
    288282cppad_cppadvector = @cppad_cppadvector@
    289283cppad_cxx_flags = @cppad_cxx_flags@
     
    307301cppad_tape_id_type = @cppad_tape_id_type@
    308302cppad_url = @cppad_url@
     303cppad_use_cplusplus_2011 = @cppad_use_cplusplus_2011@
    309304cppad_version = @cppad_version@
    310305datadir = @datadir@
  • trunk/cppad_ipopt/speed/makefile.in

    r3684 r3685  
    282282cppad_SOURCE_DIR = @cppad_SOURCE_DIR@
    283283cppad_boostvector = @cppad_boostvector@
    284 cppad_compiler_has_acosh = @cppad_compiler_has_acosh@
    285 cppad_compiler_has_asinh = @cppad_compiler_has_asinh@
    286 cppad_compiler_has_atanh = @cppad_compiler_has_atanh@
    287 cppad_compiler_has_erf = @cppad_compiler_has_erf@
    288 cppad_compiler_has_expm1 = @cppad_compiler_has_expm1@
    289 cppad_compiler_has_log1p = @cppad_compiler_has_log1p@
    290284cppad_cppadvector = @cppad_cppadvector@
    291285cppad_cxx_flags = @cppad_cxx_flags@
     
    309303cppad_tape_id_type = @cppad_tape_id_type@
    310304cppad_url = @cppad_url@
     305cppad_use_cplusplus_2011 = @cppad_use_cplusplus_2011@
    311306cppad_version = @cppad_version@
    312307datadir = @datadir@
  • trunk/cppad_ipopt/src/makefile.in

    r3684 r3685  
    318318cppad_SOURCE_DIR = @cppad_SOURCE_DIR@
    319319cppad_boostvector = @cppad_boostvector@
    320 cppad_compiler_has_acosh = @cppad_compiler_has_acosh@
    321 cppad_compiler_has_asinh = @cppad_compiler_has_asinh@
    322 cppad_compiler_has_atanh = @cppad_compiler_has_atanh@
    323 cppad_compiler_has_erf = @cppad_compiler_has_erf@
    324 cppad_compiler_has_expm1 = @cppad_compiler_has_expm1@
    325 cppad_compiler_has_log1p = @cppad_compiler_has_log1p@
    326320cppad_cppadvector = @cppad_cppadvector@
    327321cppad_cxx_flags = @cppad_cxx_flags@
     
    345339cppad_tape_id_type = @cppad_tape_id_type@
    346340cppad_url = @cppad_url@
     341cppad_use_cplusplus_2011 = @cppad_use_cplusplus_2011@
    347342cppad_version = @cppad_version@
    348343datadir = @datadir@
  • trunk/cppad_ipopt/test/makefile.in

    r3684 r3685  
    268268cppad_SOURCE_DIR = @cppad_SOURCE_DIR@
    269269cppad_boostvector = @cppad_boostvector@
    270 cppad_compiler_has_acosh = @cppad_compiler_has_acosh@
    271 cppad_compiler_has_asinh = @cppad_compiler_has_asinh@
    272 cppad_compiler_has_atanh = @cppad_compiler_has_atanh@
    273 cppad_compiler_has_erf = @cppad_compiler_has_erf@
    274 cppad_compiler_has_expm1 = @cppad_compiler_has_expm1@
    275 cppad_compiler_has_log1p = @cppad_compiler_has_log1p@
    276270cppad_cppadvector = @cppad_cppadvector@
    277271cppad_cxx_flags = @cppad_cxx_flags@
     
    295289cppad_tape_id_type = @cppad_tape_id_type@
    296290cppad_url = @cppad_url@
     291cppad_use_cplusplus_2011 = @cppad_use_cplusplus_2011@
    297292cppad_version = @cppad_version@
    298293datadir = @datadir@
  • trunk/example/atomic/makefile.in

    r3684 r3685  
    279279cppad_SOURCE_DIR = @cppad_SOURCE_DIR@
    280280cppad_boostvector = @cppad_boostvector@
    281 cppad_compiler_has_acosh = @cppad_compiler_has_acosh@
    282 cppad_compiler_has_asinh = @cppad_compiler_has_asinh@
    283 cppad_compiler_has_atanh = @cppad_compiler_has_atanh@
    284 cppad_compiler_has_erf = @cppad_compiler_has_erf@
    285 cppad_compiler_has_expm1 = @cppad_compiler_has_expm1@
    286 cppad_compiler_has_log1p = @cppad_compiler_has_log1p@
    287281cppad_cppadvector = @cppad_cppadvector@
    288282cppad_cxx_flags = @cppad_cxx_flags@
     
    306300cppad_tape_id_type = @cppad_tape_id_type@
    307301cppad_url = @cppad_url@
     302cppad_use_cplusplus_2011 = @cppad_use_cplusplus_2011@
    308303cppad_version = @cppad_version@
    309304datadir = @datadir@
  • trunk/example/base_alloc.hpp

    r3684 r3685  
    313313required by $code AD<base_alloc>$$:
    314314$codep */
    315 # if CPPAD_COMPILER_HAS_ERF
     315# if CPPAD_USE_CPLUSPLUS_2011
    316316        BASE_ALLOC_STD_MATH(erf)
    317 # endif
    318 # if CPPAD_COMPILER_HAS_ASINH
    319317        BASE_ALLOC_STD_MATH(asinh)
    320 # endif
    321 # if CPPAD_COMPILER_HAS_ACOSH
    322318        BASE_ALLOC_STD_MATH(acosh)
    323 # endif
    324 # if CPPAD_COMPILER_HAS_ATANH
    325319        BASE_ALLOC_STD_MATH(atanh)
    326 # endif
    327 # if CPPAD_COMPILER_HAS_EXPM1
    328320        BASE_ALLOC_STD_MATH(expm1)
    329 # endif
    330 # if CPPAD_COMPILER_HAS_LOG1P
    331321        BASE_ALLOC_STD_MATH(log1p)
    332322# endif
  • trunk/example/erf.cpp

    r3499 r3685  
    11/* $Id$ */
    22/* --------------------------------------------------------------------------
    3 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-12 Bradley M. Bell
     3CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-15 Bradley M. Bell
    44
    55CppAD is distributed under multiple licenses. This distribution is under
    6 the terms of the 
     6the terms of the
    77                    Eclipse Public License Version 1.0.
    88
     
    5252        CppAD::Independent(ax);
    5353
    54         // range space vector 
     54        // range space vector
    5555        size_t m = 1;
    5656        CPPAD_TESTVECTOR(AD<double>) ay(m);
     
    5858
    5959        // create f: x -> y and stop tape recording
    60         CppAD::ADFun<double> f(ax, ay); 
     60        CppAD::ADFun<double> f(ax, ay);
    6161
    62         // check relative erorr 
     62        // check relative erorr
    6363        double erf_x0 = 0.52050;
    6464        ok &= NearEqual(ay[0] , erf_x0,  0.,    4e-4);
    65 # if CPPAD_COMPILER_HAS_ERF
     65# if CPPAD_USE_CPLUSPLUS_2011
    6666        ok &= NearEqual(ay[0] , erf_x0,  0.,    1e-5);
    6767# endif
     
    7878        dy    = f.Forward(1, dx);
    7979        ok   &= NearEqual(dy[0], check,  0.,  1e-3);
    80 # if CPPAD_COMPILER_HAS_ERF
     80# if CPPAD_USE_CPLUSPLUS_2011
    8181        ok   &= NearEqual(dy[0], check,  0.,  eps);
    8282# endif
     
    8888        dw    = f.Reverse(1, w);
    8989        ok   &= NearEqual(dw[0], check,  0., 1e-1);
    90 # if CPPAD_COMPILER_HAS_ERF
     90# if CPPAD_USE_CPLUSPLUS_2011
    9191        ok   &= NearEqual(dw[0], check,  0., eps);
    9292# endif
  • trunk/example/ipopt_solve/makefile.in

    r3684 r3685  
    267267cppad_SOURCE_DIR = @cppad_SOURCE_DIR@
    268268cppad_boostvector = @cppad_boostvector@
    269 cppad_compiler_has_acosh = @cppad_compiler_has_acosh@
    270 cppad_compiler_has_asinh = @cppad_compiler_has_asinh@
    271 cppad_compiler_has_atanh = @cppad_compiler_has_atanh@
    272 cppad_compiler_has_erf = @cppad_compiler_has_erf@
    273 cppad_compiler_has_expm1 = @cppad_compiler_has_expm1@
    274 cppad_compiler_has_log1p = @cppad_compiler_has_log1p@
    275269cppad_cppadvector = @cppad_cppadvector@
    276270cppad_cxx_flags = @cppad_cxx_flags@
     
    294288cppad_tape_id_type = @cppad_tape_id_type@
    295289cppad_url = @cppad_url@
     290cppad_use_cplusplus_2011 = @cppad_use_cplusplus_2011@
    296291cppad_version = @cppad_version@
    297292datadir = @datadir@
  • trunk/example/makefile.in

    r3684 r3685  
    383383cppad_SOURCE_DIR = @cppad_SOURCE_DIR@
    384384cppad_boostvector = @cppad_boostvector@
    385 cppad_compiler_has_acosh = @cppad_compiler_has_acosh@
    386 cppad_compiler_has_asinh = @cppad_compiler_has_asinh@
    387 cppad_compiler_has_atanh = @cppad_compiler_has_atanh@
    388 cppad_compiler_has_erf = @cppad_compiler_has_erf@
    389 cppad_compiler_has_expm1 = @cppad_compiler_has_expm1@
    390 cppad_compiler_has_log1p = @cppad_compiler_has_log1p@
    391385cppad_cppadvector = @cppad_cppadvector@
    392386cppad_cxx_flags = @cppad_cxx_flags@
     
    410404cppad_tape_id_type = @cppad_tape_id_type@
    411405cppad_url = @cppad_url@
     406cppad_use_cplusplus_2011 = @cppad_use_cplusplus_2011@
    412407cppad_version = @cppad_version@
    413408datadir = @datadir@
  • trunk/introduction/exp_apx/makefile.in

    r3684 r3685  
    281281cppad_SOURCE_DIR = @cppad_SOURCE_DIR@
    282282cppad_boostvector = @cppad_boostvector@
    283 cppad_compiler_has_acosh = @cppad_compiler_has_acosh@
    284 cppad_compiler_has_asinh = @cppad_compiler_has_asinh@
    285 cppad_compiler_has_atanh = @cppad_compiler_has_atanh@
    286 cppad_compiler_has_erf = @cppad_compiler_has_erf@
    287 cppad_compiler_has_expm1 = @cppad_compiler_has_expm1@
    288 cppad_compiler_has_log1p = @cppad_compiler_has_log1p@
    289283cppad_cppadvector = @cppad_cppadvector@
    290284cppad_cxx_flags = @cppad_cxx_flags@
     
    308302cppad_tape_id_type = @cppad_tape_id_type@
    309303cppad_url = @cppad_url@
     304cppad_use_cplusplus_2011 = @cppad_use_cplusplus_2011@
    310305cppad_version = @cppad_version@
    311306datadir = @datadir@
  • trunk/introduction/get_started/makefile.in

    r3684 r3685  
    264264cppad_SOURCE_DIR = @cppad_SOURCE_DIR@
    265265cppad_boostvector = @cppad_boostvector@
    266 cppad_compiler_has_acosh = @cppad_compiler_has_acosh@
    267 cppad_compiler_has_asinh = @cppad_compiler_has_asinh@
    268 cppad_compiler_has_atanh = @cppad_compiler_has_atanh@
    269 cppad_compiler_has_erf = @cppad_compiler_has_erf@
    270 cppad_compiler_has_expm1 = @cppad_compiler_has_expm1@
    271 cppad_compiler_has_log1p = @cppad_compiler_has_log1p@
    272266cppad_cppadvector = @cppad_cppadvector@
    273267cppad_cxx_flags = @cppad_cxx_flags@
     
    291285cppad_tape_id_type = @cppad_tape_id_type@
    292286cppad_url = @cppad_url@
     287cppad_use_cplusplus_2011 = @cppad_use_cplusplus_2011@
    293288cppad_version = @cppad_version@
    294289datadir = @datadir@
  • trunk/makefile.in

    r3684 r3685  
    335335cppad_SOURCE_DIR = @cppad_SOURCE_DIR@
    336336cppad_boostvector = @cppad_boostvector@
    337 cppad_compiler_has_acosh = @cppad_compiler_has_acosh@
    338 cppad_compiler_has_asinh = @cppad_compiler_has_asinh@
    339 cppad_compiler_has_atanh = @cppad_compiler_has_atanh@
    340 cppad_compiler_has_erf = @cppad_compiler_has_erf@
    341 cppad_compiler_has_expm1 = @cppad_compiler_has_expm1@
    342 cppad_compiler_has_log1p = @cppad_compiler_has_log1p@
    343337cppad_cppadvector = @cppad_cppadvector@
    344338cppad_cxx_flags = @cppad_cxx_flags@
     
    362356cppad_tape_id_type = @cppad_tape_id_type@
    363357cppad_url = @cppad_url@
     358cppad_use_cplusplus_2011 = @cppad_use_cplusplus_2011@
    364359cppad_version = @cppad_version@
    365360datadir = @datadir@
  • trunk/multi_thread/makefile.in

    r3684 r3685  
    305305cppad_SOURCE_DIR = @cppad_SOURCE_DIR@
    306306cppad_boostvector = @cppad_boostvector@
    307 cppad_compiler_has_acosh = @cppad_compiler_has_acosh@
    308 cppad_compiler_has_asinh = @cppad_compiler_has_asinh@
    309 cppad_compiler_has_atanh = @cppad_compiler_has_atanh@
    310 cppad_compiler_has_erf = @cppad_compiler_has_erf@
    311 cppad_compiler_has_expm1 = @cppad_compiler_has_expm1@
    312 cppad_compiler_has_log1p = @cppad_compiler_has_log1p@
    313307cppad_cppadvector = @cppad_cppadvector@
    314308cppad_cxx_flags = @cppad_cxx_flags@
     
    332326cppad_tape_id_type = @cppad_tape_id_type@
    333327cppad_url = @cppad_url@
     328cppad_use_cplusplus_2011 = @cppad_use_cplusplus_2011@
    334329cppad_version = @cppad_version@
    335330datadir = @datadir@
  • trunk/multi_thread/test_multi/makefile.in

    r3684 r3685  
    263263cppad_SOURCE_DIR = @cppad_SOURCE_DIR@
    264264cppad_boostvector = @cppad_boostvector@
    265 cppad_compiler_has_acosh = @cppad_compiler_has_acosh@
    266 cppad_compiler_has_asinh = @cppad_compiler_has_asinh@
    267 cppad_compiler_has_atanh = @cppad_compiler_has_atanh@
    268 cppad_compiler_has_erf = @cppad_compiler_has_erf@
    269 cppad_compiler_has_expm1 = @cppad_compiler_has_expm1@
    270 cppad_compiler_has_log1p = @cppad_compiler_has_log1p@
    271265cppad_cppadvector = @cppad_cppadvector@
    272266cppad_cxx_flags = @cppad_cxx_flags@
     
    290284cppad_tape_id_type = @cppad_tape_id_type@
    291285cppad_url = @cppad_url@
     286cppad_use_cplusplus_2011 = @cppad_use_cplusplus_2011@
    292287cppad_version = @cppad_version@
    293288datadir = @datadir@
  • trunk/omh/whats_new/whats_new_15.omh

    r3684 r3685  
    5656
    5757$head 05-10$$
     58$list number$$
    5859Add the exponential minus one function $cref log1p$$.
    5960If you are defining your own base type,
    6061note that $cref/log1p/base_std_math/erf, asinh, acosh, atanh, expm1, log1p/$$
    6162was added to the base type requirements.
     63$lnext
     64Use the single preprocessor flag
     65$code CPPAD_USE_CPLUSPLUS_2011$$ to signal that the functions
     66$cref/erf, asinh, acosh, atanh, expm1, log1p
     67        /base_std_math
     68        /erf, asinh, acosh, atanh, expm1, log1p
     69/$$
     70are part of the base type requirements.
     71$lend
    6272
    6373$head 05-09$$
     
    8393Fix a bug in the implementation of the $code acosh$$
    8494multiple direction forward mode $cref forward_dir$$
    85 (when compiler has $cref/acosh/acosh/CPPAD_COMPILER_HAS_ACOSH/$$).
     95(when compiler has $cref/acosh/acosh/CPPAD_USE_CPLUSPLUS_2011/$$).
    8696$lend
    8797
     
    169179Fix another bug in the derivative calculations for the
    170180c++11 version of the error function; see
    171 $cref/CPPAD_COMPILER_HAS_ERF/erf/Method/CPPAD_COMPILER_HAS_ERF/$$.
     181$cref/CPPAD_USE_CPLUSPLUS_2011/erf/Method/CPPAD_USE_CPLUSPLUS_2011/$$.
    172182
    173183$head 02-11$$
     
    184194bug when the c++11 version of the error function was used with
    185195an $cref/optimized/optimize/$$ function. see
    186 $cref/CPPAD_COMPILER_HAS_ERF/erf/Method/CPPAD_COMPILER_HAS_ERF/$$.
     196$cref/CPPAD_USE_CPLUSPLUS_2011/erf/Method/CPPAD_USE_CPLUSPLUS_2011/$$.
    187197There was also a bug in the sparsity calculations for when
    188198this erf function was included.
  • trunk/print_for/makefile.in

    r3684 r3685  
    263263cppad_SOURCE_DIR = @cppad_SOURCE_DIR@
    264264cppad_boostvector = @cppad_boostvector@
    265 cppad_compiler_has_acosh = @cppad_compiler_has_acosh@
    266 cppad_compiler_has_asinh = @cppad_compiler_has_asinh@
    267 cppad_compiler_has_atanh = @cppad_compiler_has_atanh@
    268 cppad_compiler_has_erf = @cppad_compiler_has_erf@
    269 cppad_compiler_has_expm1 = @cppad_compiler_has_expm1@
    270 cppad_compiler_has_log1p = @cppad_compiler_has_log1p@
    271265cppad_cppadvector = @cppad_cppadvector@
    272266cppad_cxx_flags = @cppad_cxx_flags@
     
    290284cppad_tape_id_type = @cppad_tape_id_type@
    291285cppad_url = @cppad_url@
     286cppad_use_cplusplus_2011 = @cppad_use_cplusplus_2011@
    292287cppad_version = @cppad_version@
    293288datadir = @datadir@
  • trunk/speed/adolc/makefile.in

    r3684 r3685  
    267267cppad_SOURCE_DIR = @cppad_SOURCE_DIR@
    268268cppad_boostvector = @cppad_boostvector@
    269 cppad_compiler_has_acosh = @cppad_compiler_has_acosh@
    270 cppad_compiler_has_asinh = @cppad_compiler_has_asinh@
    271 cppad_compiler_has_atanh = @cppad_compiler_has_atanh@
    272 cppad_compiler_has_erf = @cppad_compiler_has_erf@
    273 cppad_compiler_has_expm1 = @cppad_compiler_has_expm1@
    274 cppad_compiler_has_log1p = @cppad_compiler_has_log1p@
    275269cppad_cppadvector = @cppad_cppadvector@
    276270cppad_cxx_flags = @cppad_cxx_flags@
     
    294288cppad_tape_id_type = @cppad_tape_id_type@
    295289cppad_url = @cppad_url@
     290cppad_use_cplusplus_2011 = @cppad_use_cplusplus_2011@
    296291cppad_version = @cppad_version@
    297292datadir = @datadir@
  • trunk/speed/cppad/makefile.in

    r3684 r3685  
    254254cppad_SOURCE_DIR = @cppad_SOURCE_DIR@
    255255cppad_boostvector = @cppad_boostvector@
    256 cppad_compiler_has_acosh = @cppad_compiler_has_acosh@
    257 cppad_compiler_has_asinh = @cppad_compiler_has_asinh@
    258 cppad_compiler_has_atanh = @cppad_compiler_has_atanh@
    259 cppad_compiler_has_erf = @cppad_compiler_has_erf@
    260 cppad_compiler_has_expm1 = @cppad_compiler_has_expm1@
    261 cppad_compiler_has_log1p = @cppad_compiler_has_log1p@
    262256cppad_cppadvector = @cppad_cppadvector@
    263257cppad_cxx_flags = @cppad_cxx_flags@
     
    281275cppad_tape_id_type = @cppad_tape_id_type@
    282276cppad_url = @cppad_url@
     277cppad_use_cplusplus_2011 = @cppad_use_cplusplus_2011@
    283278cppad_version = @cppad_version@
    284279datadir = @datadir@
  • trunk/speed/double/makefile.in

    r3684 r3685  
    254254cppad_SOURCE_DIR = @cppad_SOURCE_DIR@
    255255cppad_boostvector = @cppad_boostvector@
    256 cppad_compiler_has_acosh = @cppad_compiler_has_acosh@
    257 cppad_compiler_has_asinh = @cppad_compiler_has_asinh@
    258 cppad_compiler_has_atanh = @cppad_compiler_has_atanh@
    259 cppad_compiler_has_erf = @cppad_compiler_has_erf@
    260 cppad_compiler_has_expm1 = @cppad_compiler_has_expm1@
    261 cppad_compiler_has_log1p = @cppad_compiler_has_log1p@
    262256cppad_cppadvector = @cppad_cppadvector@
    263257cppad_cxx_flags = @cppad_cxx_flags@
     
    281275cppad_tape_id_type = @cppad_tape_id_type@
    282276cppad_url = @cppad_url@
     277cppad_use_cplusplus_2011 = @cppad_use_cplusplus_2011@
    283278cppad_version = @cppad_version@
    284279datadir = @datadir@
  • trunk/speed/example/makefile.in

    r3684 r3685  
    270270cppad_SOURCE_DIR = @cppad_SOURCE_DIR@
    271271cppad_boostvector = @cppad_boostvector@
    272 cppad_compiler_has_acosh = @cppad_compiler_has_acosh@
    273 cppad_compiler_has_asinh = @cppad_compiler_has_asinh@
    274 cppad_compiler_has_atanh = @cppad_compiler_has_atanh@
    275 cppad_compiler_has_erf = @cppad_compiler_has_erf@
    276 cppad_compiler_has_expm1 = @cppad_compiler_has_expm1@
    277 cppad_compiler_has_log1p = @cppad_compiler_has_log1p@
    278272cppad_cppadvector = @cppad_cppadvector@
    279273cppad_cxx_flags = @cppad_cxx_flags@
     
    297291cppad_tape_id_type = @cppad_tape_id_type@
    298292cppad_url = @cppad_url@
     293cppad_use_cplusplus_2011 = @cppad_use_cplusplus_2011@
    299294cppad_version = @cppad_version@
    300295datadir = @datadir@
  • trunk/speed/fadbad/makefile.in

    r3684 r3685  
    255255cppad_SOURCE_DIR = @cppad_SOURCE_DIR@
    256256cppad_boostvector = @cppad_boostvector@
    257 cppad_compiler_has_acosh = @cppad_compiler_has_acosh@
    258 cppad_compiler_has_asinh = @cppad_compiler_has_asinh@
    259 cppad_compiler_has_atanh = @cppad_compiler_has_atanh@
    260 cppad_compiler_has_erf = @cppad_compiler_has_erf@
    261 cppad_compiler_has_expm1 = @cppad_compiler_has_expm1@
    262 cppad_compiler_has_log1p = @cppad_compiler_has_log1p@
    263257cppad_cppadvector = @cppad_cppadvector@
    264258cppad_cxx_flags = @cppad_cxx_flags@
     
    282276cppad_tape_id_type = @cppad_tape_id_type@
    283277cppad_url = @cppad_url@
     278cppad_use_cplusplus_2011 = @cppad_use_cplusplus_2011@
    284279cppad_version = @cppad_version@
    285280datadir = @datadir@
  • trunk/speed/profile/makefile.in

    r3684 r3685  
    257257cppad_SOURCE_DIR = @cppad_SOURCE_DIR@
    258258cppad_boostvector = @cppad_boostvector@
    259 cppad_compiler_has_acosh = @cppad_compiler_has_acosh@
    260 cppad_compiler_has_asinh = @cppad_compiler_has_asinh@
    261 cppad_compiler_has_atanh = @cppad_compiler_has_atanh@
    262 cppad_compiler_has_erf = @cppad_compiler_has_erf@
    263 cppad_compiler_has_expm1 = @cppad_compiler_has_expm1@
    264 cppad_compiler_has_log1p = @cppad_compiler_has_log1p@
    265259cppad_cppadvector = @cppad_cppadvector@
    266260cppad_cxx_flags = @cppad_cxx_flags@
     
    284278cppad_tape_id_type = @cppad_tape_id_type@
    285279cppad_url = @cppad_url@
     280cppad_use_cplusplus_2011 = @cppad_use_cplusplus_2011@
    286281cppad_version = @cppad_version@
    287282datadir = @datadir@
  • trunk/speed/sacado/makefile.in

    r3684 r3685  
    255255cppad_SOURCE_DIR = @cppad_SOURCE_DIR@
    256256cppad_boostvector = @cppad_boostvector@
    257 cppad_compiler_has_acosh = @cppad_compiler_has_acosh@
    258 cppad_compiler_has_asinh = @cppad_compiler_has_asinh@
    259 cppad_compiler_has_atanh = @cppad_compiler_has_atanh@
    260 cppad_compiler_has_erf = @cppad_compiler_has_erf@
    261 cppad_compiler_has_expm1 = @cppad_compiler_has_expm1@
    262 cppad_compiler_has_log1p = @cppad_compiler_has_log1p@
    263257cppad_cppadvector = @cppad_cppadvector@
    264258cppad_cxx_flags = @cppad_cxx_flags@
     
    282276cppad_tape_id_type = @cppad_tape_id_type@
    283277cppad_url = @cppad_url@
     278cppad_use_cplusplus_2011 = @cppad_use_cplusplus_2011@
    284279cppad_version = @cppad_version@
    285280datadir = @datadir@
  • trunk/speed/src/makefile.in

    r3684 r3685  
    273273cppad_SOURCE_DIR = @cppad_SOURCE_DIR@
    274274cppad_boostvector = @cppad_boostvector@
    275 cppad_compiler_has_acosh = @cppad_compiler_has_acosh@
    276 cppad_compiler_has_asinh = @cppad_compiler_has_asinh@
    277 cppad_compiler_has_atanh = @cppad_compiler_has_atanh@
    278 cppad_compiler_has_erf = @cppad_compiler_has_erf@
    279 cppad_compiler_has_expm1 = @cppad_compiler_has_expm1@
    280 cppad_compiler_has_log1p = @cppad_compiler_has_log1p@
    281275cppad_cppadvector = @cppad_cppadvector@
    282276cppad_cxx_flags = @cppad_cxx_flags@
     
    300294cppad_tape_id_type = @cppad_tape_id_type@
    301295cppad_url = @cppad_url@
     296cppad_use_cplusplus_2011 = @cppad_use_cplusplus_2011@
    302297cppad_version = @cppad_version@
    303298datadir = @datadir@
  • 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.