source: trunk/ADOL-C/include/adolc/internal/adubfunc.h @ 762

Last change on this file since 762 was 762, checked in by mbanovic, 10 months ago

Merged branch "medipacksupport" from "git" into "svn"

The following commits were merged:

commit 0d1b5eec2cca8afdeea3cdffa196efb6cfd60a53
Merge: 72d114b 33bfdb5
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Mon Nov 5 10:03:04 2018 +0000

Merge branch 'medipackSupport' into 'medipacksupport'

Medipack support

See merge request adol-c/adol-c!26

commit 33bfdb5a006c782489bfef1b651ca3bdbceefaf2
Merge: ac55eab cf82982
Author: Max Sagebaum <max.sagebaum@…>
Date: Tue Oct 30 11:19:31 2018 +0100

Merge branch 'medipackSupport' into temp

commit ac55eab9dd8cb8c84926ee56456076392a047c1a
Merge: 72d114b caaac60
Author: Max Sagebaum <max.sagebaum@…>
Date: Tue Oct 30 11:14:09 2018 +0100

Merge remote-tracking branch 'origin/master' into temp

commit cf82982421aaa7d83405ffa3d0c9b6ef88251d0c
Merge: 6aeca20 caaac60
Author: Max Sagebaum <max.sagebaum@…>
Date: Tue Oct 30 11:13:25 2018 +0100

Merge remote-tracking branch 'origin/master' into medipackSupport

commit 6aeca205c2448b4bbc915eb76153ebde19448573
Author: Max Sagebaum <max.sagebaum@…>
Date: Tue Oct 23 22:30:28 2018 +0200

Added suport for ZOS, FOS, FOV forward and reverse.

commit caaac60da4c61b370d106c68064d38c42a7cb6e3
Merge: cc2e0b3 70fc288
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Mon Oct 8 08:53:40 2018 +0000

Merge branch 'fix_adtl_hov_refcntr' into 'master'

Fix undefined reference to adtl_hov::refcounter::refcnt

See merge request adol-c/adol-c!24

commit 70fc288b9ab95b16d3179fcf239ee2208ae1a2c4
Author: Jean-Paul Pelteret <jppelteret@…>
Date: Mon Oct 1 20:53:03 2018 +0200

Fix undefined reference to adtl_hov::refcounter::refcnt

commit cc2e0b3154fb6e62580def4501c4cf3f3d8e32ef
Merge: d7400f5 7c7f24b
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Mon Oct 1 12:26:39 2018 +0000

Merge branch 'docu' into 'master'

Refactor tapeless to traceless

See merge request adol-c/adol-c!23

commit ca397962cde23bde80e03924893e09c84d8728bf
Merge: 9cbc432 d7400f5
Author: Max Sagebaum <max.sagebaum@…>
Date: Fri Sep 28 10:07:41 2018 +0200

Merge remote-tracking branch 'origin/master' into medipackSupport

commit 9cbc4324e0d3e19f97ba5c5474121f0189e60f83
Author: Max Sagebaum <max.sagebaum@…>
Date: Thu Sep 27 14:38:30 2018 +0200

Missing MeDiPack? initialization on trace_on.

commit 76c30290365830d2370a354af949f3bf42df3885
Author: Max Sagebaum <max.sagebaum@…>
Date: Thu Sep 27 09:55:42 2018 +0200

Null pointer fix for initialization.

commit 7c7f24b25479870d58ff19d78a6e394ca28ddb58
Author: mflehmig <martin.schroschk@…>
Date: Thu Sep 20 13:16:06 2018 +0200

Refactor tapeless to traceless

As far as I can see, the official wording is traceless forward mode.
Additonally, the latex label and refs changed to 'traceless'.

commit 72d114b7ac42b8ac493030cedd1df8c9746ba5d4
Author: Max Sagebaum <max.sagebaum@…>
Date: Thu Oct 19 09:25:19 2017 +0200

Added support for MeDiPack? library.

Enable it with the configure options:
--enable-medipack --with-medipack=<path to MeDiPack?>

Tutorial on a how to use will follow.

commit b4ca76279d28407f29901d40953d02a0c5c9140e
Author: Max Sagebaum <max.sagebaum@…>
Date: Mon May 7 14:45:13 2018 +0200

Added support for cbrt function.

commit bc7b8ca61865058fac097410fd94a44fba281131
Author: Max Sagebaum <max.sagebaum@…>
Date: Thu Mar 1 10:31:18 2018 +0100

Changes for new interface.

commit cd1e82778c8540221b24559d5097bf6d00597e19
Author: Max Sagebaum <max.sagebaum@…>
Date: Thu Nov 16 14:31:07 2017 +0100

Changes to new MeDiPack? interface for adjoint values.

commit 55bcb0ffd5a9496817bffac0bd2c9489ed8ce992
Author: Max Sagebaum <max.sagebaum@…>
Date: Thu Oct 19 09:25:19 2017 +0200

Added support for MeDiPack? library.

Enable it with the configure options:
--enable-medipack --with-medipack=<path to MeDiPack?>

Tutorial on a how to use will follow.

File size: 4.8 KB
RevLine 
[537]1/*----------------------------------------------------------------------------
2 ADOL-C -- Automatic Differentiation by Overloading in C++
[562]3 File:     adubfunc.h
[537]4 Revision: $Id$
5 Contents: operators and functions returning temporaries
6 
7 Copyright (c) Kshitij Kulshreshtha
8
9 This file is part of ADOL-C. This software is provided as open source.
10 Any use, reproduction, or distribution of the software constitutes
11 recipient's acceptance of the terms of the accompanying license file.
12
13----------------------------------------------------------------------------*/
14
15#if defined(_IN_CLASS_) && _IN_CLASS_
16#if defined(_IN_BADOUBLE_) || defined(_IN_ADUB_)
[550]17    /*--------------------------------------------------------------------------*/
18    /* Comparison (friends) */
[537]19#if defined(ADOLC_ADVANCED_BRANCHING)
20    friend ADOLC_DLL_EXPORT adub operator != ( const badouble&, const badouble& );
21    friend ADOLC_DLL_EXPORT adub operator == ( const badouble&, const badouble& );
22    friend ADOLC_DLL_EXPORT adub operator <= ( const badouble&, const badouble& );
23    friend ADOLC_DLL_EXPORT adub operator >= ( const badouble&, const badouble& );
24    friend ADOLC_DLL_EXPORT adub operator >  ( const badouble&, const badouble& );
25    friend ADOLC_DLL_EXPORT adub operator <  ( const badouble&, const badouble& );
26#endif
27    /*--------------------------------------------------------------------------*/
28    /* sign operators (friends) */
29    friend ADOLC_DLL_EXPORT adub operator + ( const badouble& x );
30    friend ADOLC_DLL_EXPORT adub operator - ( const badouble& x );
31
32    /*--------------------------------------------------------------------------*/
33    /* binary operators (friends) */
34    friend ADOLC_DLL_EXPORT adub operator + ( const badouble&, const badouble& );
35    friend ADOLC_DLL_EXPORT adub operator + ( double, const badouble& );
[748]36    inline friend adub operator + ( const badouble&, double );
[537]37    friend ADOLC_DLL_EXPORT adub operator - ( const badouble&, const badouble& );
38    inline friend adub operator - ( const badouble&, double );
39    friend ADOLC_DLL_EXPORT adub operator - ( double, const badouble& );
40    friend ADOLC_DLL_EXPORT adub operator * ( const badouble&, const badouble& );
41    friend ADOLC_DLL_EXPORT adub operator * ( double, const badouble& );
42    inline friend adub operator * ( const badouble&, double );
43    inline friend adub operator / ( const badouble&, double );
44    friend ADOLC_DLL_EXPORT adub operator / ( const badouble&, const badouble& );
45    friend ADOLC_DLL_EXPORT adub operator / ( double, const badouble& );
46
47    /*--------------------------------------------------------------------------*/
48    /* unary operators (friends) */
49    friend ADOLC_DLL_EXPORT adub exp  ( const badouble& );
50    friend ADOLC_DLL_EXPORT adub log  ( const badouble& );
51    friend ADOLC_DLL_EXPORT adub sqrt ( const badouble& );
[762]52    friend ADOLC_DLL_EXPORT adub cbrt ( const badouble& );
[537]53    friend ADOLC_DLL_EXPORT adub sin  ( const badouble& );
54    friend ADOLC_DLL_EXPORT adub cos  ( const badouble& );
55    friend ADOLC_DLL_EXPORT adub tan  ( const badouble& );
56    friend ADOLC_DLL_EXPORT adub asin ( const badouble& );
57    friend ADOLC_DLL_EXPORT adub acos ( const badouble& );
58    friend ADOLC_DLL_EXPORT adub atan ( const badouble& );
59
60    /*--------------------------------------------------------------------------*/
61    /* special operators (friends) */
62    /* no internal use of condassign: */
63    friend ADOLC_DLL_EXPORT adub    pow   ( const badouble&, double );
64    friend ADOLC_DLL_EXPORT adub    log10 ( const badouble& );
65
66    /* Additional ANSI C standard Math functions Added by DWJ on 8/6/90 */
67    friend ADOLC_DLL_EXPORT adub sinh  ( const badouble& );
68    friend ADOLC_DLL_EXPORT adub cosh  ( const badouble& );
69    friend ADOLC_DLL_EXPORT adub tanh  ( const badouble& );
70#if defined(ATRIG_ERF)
71    friend ADOLC_DLL_EXPORT adub asinh ( const badouble& );
72    friend ADOLC_DLL_EXPORT adub acosh ( const badouble& );
73    friend ADOLC_DLL_EXPORT adub atanh ( const badouble& );
[658]74    friend ADOLC_DLL_EXPORT adub erf   ( const badouble& );
[537]75#endif
76
77    friend ADOLC_DLL_EXPORT adub fabs  ( const badouble& );
78    friend ADOLC_DLL_EXPORT adub ceil  ( const badouble& );
79    friend ADOLC_DLL_EXPORT adub floor ( const badouble& );
80
81    friend ADOLC_DLL_EXPORT adub fmax ( const badouble&, const badouble& );
82    friend ADOLC_DLL_EXPORT adub fmax ( double, const badouble& );
83    friend ADOLC_DLL_EXPORT adub fmax ( const badouble&, double );
84    friend ADOLC_DLL_EXPORT adub fmin ( const badouble&, const badouble& );
85    friend ADOLC_DLL_EXPORT adub fmin ( double, const badouble& );
86    friend ADOLC_DLL_EXPORT adub fmin ( const badouble&, double );
87
88    friend ADOLC_DLL_EXPORT adub ldexp ( const badouble&, int );
89    friend ADOLC_DLL_EXPORT adub frexp ( const badouble&, int* );
90
91    /*--------------------------------------------------------------------------*/
92#endif
93#endif
Note: See TracBrowser for help on using the repository browser.