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

merge to branch: trunk
from repository: https://github.com/coin-or/CppAD
start hash code: 071875a4beba3363e5fa9752426aec4762cd1caa
end hash code: 0bef506513a519e1073c6279d5c4cba9e5c3b180

commit 0bef506513a519e1073c6279d5c4cba9e5c3b180
Author: Brad Bell <bradbell@…>
Date: Thu May 7 12:14:32 2015 -0700

Add the acosh function (as an atomic operation when defined by compiler).

commit b3264fa17b2f65b65800423a0e243c9c3ccfe06a
Author: Brad Bell <bradbell@…>
Date: Wed May 6 20:25:38 2015 -0700

CMakeLists.txt: Change so test only check for compliation.

commit dcbac4d4f20cc383f2bd9edb02036659df40b791
Author: Brad Bell <bradbell@…>
Date: Wed May 6 15:06:28 2015 -0700

asinh.cpp: check higher orders, relax accuracy on test.

commit 5f8881993fedd18cccc3c74831133a8f8a9d17b0
Author: Brad Bell <bradbell@…>
Date: Wed May 6 14:36:18 2015 -0700

Change Acos to acos.
acos.cpp: remove trailing white space.

commit e828fa1f7c4c3848c727f14b1b7a8030071ee705
Author: Brad Bell <bradbell@…>
Date: Wed May 6 12:07:35 2015 -0700

Change Acos to acos.
acos.cpp: remove redundant index commands, remove trailing with space.

commit 3d16e5b9fe1bdafa4ad01d1d466bb72b792650fa
Author: Brad Bell <bradbell@…>
Date: Wed May 6 11:30:49 2015 -0700

op_code.hpp: Minor edits to AcosOp? commnets.

commit 58beaaad149b4ac29fae44589d7f8900bf8f4c40
Author: Brad Bell <bradbell@…>
Date: Wed May 6 10:51:43 2015 -0700

for_jac_sweep.hpp: Add missing AsinhOp? case.

commit 623c134870c522ae5e80bcf0f89d230902594c80
Author: Brad Bell <bradbell@…>
Date: Wed May 6 10:27:39 2015 -0700

Fix comment about AsinhOp? operator.

commit 226b14f6f4810f5abf1ca247aae541963efaf4d6
Author: Brad Bell <bradbell@…>
Date: Wed May 6 10:14:08 2015 -0700

Add derivative of F to make order zero case clearer.
acos_reverse.omh: Fix some sign errors.
asin_reverse.omh: Fix typo.
acos_forward.omh: Simplify by distributing minus sign.

commit 4682f4ee73e33b600b180086576e986f636a24dc
Author: Brad Bell <bradbell@…>
Date: Wed May 6 08:15:50 2015 -0700

acos_forward.omh: fix sign that depends on acos versus acosh.

commit 906ae10adf019ddda7f57dd165aab08fc55289c4
Author: Brad Bell <bradbell@…>
Date: Wed May 6 07:09:47 2015 -0700

  1. Fix inclusion of some temporary files in package (e.g., git_commit.sh).
  2. Simplify and improve using git ls-files and ls bin/check_*.
  3. Remove trailing white space.

commit 5096f4706a547bd76caa3766aa2c62802ef7f0bf
Author: Brad Bell <bradbell@…>
Date: Wed May 6 06:41:20 2015 -0700

Combine base type documentation for erf, asinh
(will add more functions to this list list).

commit b3535db5ad95bee90672abcaa686032d23bce2fc
Author: Brad Bell <bradbell@…>
Date: Tue May 5 18:01:11 2015 -0700

  1. Change Arc Cosine/Sine? to Inverse Cosine/Sine?.
  2. Change arcsin-> asin and arccos->acos.
  3. Remove index commands that are duplicates of words in titles.


acos_reverse.omh: Add acosh case to this page.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cppad/example/base_adolc.hpp

    r3675 r3680  
    1515$begin base_adolc.hpp$$
    1616$spell
     17        acosh
    1718        asinh
    1819        erf
     
    217218$code tan$$.
    218219
    219 $head asinh$$
    220 If the inverse hyperbolic sine function is supported by the compiler,
    221 it must also be supported by a $icode Base$$ type;
    222 see $cref/asinh/base_std_math/asinh/$$.
    223 The adolc package does not support this function:
    224 $codep */
    225 namespace CppAD {
     220$head erf, asin$$
     221If the
     222$cref/erf, asinh, acosh/base_std_math/erf, asinh, acosh/$$,
     223functions are supported by the compiler,
     224they must also be supported by a $icode Base$$ type;
     225The adolc package does not support these functions so make
     226their use an error:
     227$codep */
     228namespace CppAD {
     229# define CPPAD_BASE_ADOLC_NO_SUPPORT(fun)                         \
     230    inline adouble fun(const adouble& x)                          \
     231    {   CPPAD_ASSERT_KNOWN(                                       \
     232            false,                                                \
     233            #fun ": adolc does not support this function"         \
     234        );                                                        \
     235        return 0.0;                                               \
     236    }
     237# if CPPAD_COMPILER_HAS_ERF
     238        CPPAD_BASE_ADOLC_NO_SUPPORT(erf)
     239# endif
     240# if CPPAD_COMPILER_HAS_ACOSH
     241        CPPAD_BASE_ADOLC_NO_SUPPORT(acosh)
     242# endif
    226243# if CPPAD_COMPILER_HAS_ASINH
    227         inline adouble asinh(const adouble& x)
    228         {       CPPAD_ASSERT_KNOWN(
    229                         false,
    230                         "erf: adolc does not support the inverse hyperbolic sine function"
    231                 );
    232                 return 0;
    233         }
     244        CPPAD_BASE_ADOLC_NO_SUPPORT(asinh)
    234245# endif
    235 }
    236 /* $$
    237 
    238 $head erf$$
    239 If the error function is supported by the compiler,
    240 it must also be supported by a $icode Base$$ type;
    241 see $cref/erf/base_std_math/erf/$$.
    242 The adolc package does not support this function:
    243 $codep */
    244 namespace CppAD {
    245 # if CPPAD_COMPILER_HAS_ERF
    246         inline adouble erf(const adouble& x)
    247         {       CPPAD_ASSERT_KNOWN(
    248                         false,
    249                         "erf: adolc does not support the error function"
    250                 );
    251                 return 0;
    252         }
    253 # endif
    254 }
    255 /* $$
    256 
    257 
     246# undef CPPAD_BASE_ADOLC_NO_SUPPORT
     247}
     248/* $$
    258249
    259250$head sign$$
Note: See TracChangeset for help on using the changeset viewer.