/home/coin/svn-release/OptimizationSuite-1.1.0/cppad/cppad/local/std_math_unary.hpp File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  CppAD

Defines

#define CPPAD_STANDARD_MATH_UNARY_BASE(Name)
#define CPPAD_STANDARD_MATH_UNARY_BASE_TEMPLATE(Name, Op)

Functions

template<class Base >
AD< Base > CppAD::log10 (const AD< Base > &x)
template<class Base >
AD< Base > CppAD::log10 (const VecAD_reference< Base > &x)
template<class Base >
AD< Base > CppAD::tan (const AD< Base > &x)
template<class Base >
AD< Base > CppAD::tan (const VecAD_reference< Base > &x)

Define Documentation

#define CPPAD_STANDARD_MATH_UNARY_BASE ( Name   ) 
Value:
\
        inline float Name(const float &x)                                 \
        {       return std::Name(x); }                                    \
                                                                          \
        inline double Name(const double &x)                               \
        {       return std::Name(x); }                                    \
                                                                          \

Definition at line 278 of file std_math_unary.hpp.

#define CPPAD_STANDARD_MATH_UNARY_BASE_TEMPLATE ( Name,
Op   ) 
Value:
template <class Base>                                             \
        inline AD<Base> AD<Base>::Name (void) const                       \
        {       using CppAD::Name;                                        \
                AD<Base> result;                                          \
                CPPAD_ASSERT_UNKNOWN( Parameter(result) );                   \
                result.value_ = Name(value_);                             \
                if( Variable(*this) )                                     \
                        tape_this()->RecordOp(Op, result, taddr_);        \
                return result;                                            \
        }                                                                 \
        template <class Base>                                             \
        inline AD<Base> Name(const AD<Base> &x)                           \
        {       return x.Name(); }                                        \
        template <class Base>                                             \
        inline AD<Base> Name(const VecAD_reference<Base> &x)              \
        {       return Name( x.ADBase() ); }

Definition at line 287 of file std_math_unary.hpp.


Generated on 15 Mar 2015 for Coin-All by  doxygen 1.6.1