Active.h File Reference

Contains interface to the GenericActive<valuetype> active tapeless class. More...

#include <vector>
#include <string>
#include <loki/AssocVector.h>

Classes

class  GenericActive< valuetype >
 
class  BaseActive
 
class  GenericActive< valuetype >
 
class  ActiveInitializer
 

Macros

#define NUMBER_DIRECTIONS   5
 
#define non_num   0.0 /* (inf_num/inf_den) and (non_num/non_den) */
 
#define non_den   0.0 /* respectively, see the documentation */
 
#define ADVAL_CONSTRUCTOR   , adval_(NUMBER_DIRECTIONS)
 
#define ADVAL_TYPE   std::vector < valuetype >
 
#define FOR_I_EQ_0_LT_NUMDIR   for (int _i = 0; _i < numdir; ++_i)
 
#define FOR_I_EQ_0_LT_ALLDIR   for (int _i = 0; _i < NUMBER_DIRECTIONS; ++_i)
 
#define ADVAL_I   adval_[_i]
 
#define ADV_I   adv[_i]
 

Typedefs

typedef GenericActive< double > Active
 

Functions

template<class valuetype >
valuetype makeNaN (void)
 
template<class valuetype >
GenericActive< valuetype > operator+ (valuetype lhs, const GenericActive< valuetype > &rhs)
 
template<class valuetype >
GenericActive< valuetype > operator- (valuetype lhs, const GenericActive< valuetype > &rhs)
 
template<class valuetype >
GenericActive< valuetype > operator* (valuetype lhs, const GenericActive< valuetype > &rhs)
 
template<class valuetype >
GenericActive< valuetype > operator/ (valuetype lhs, const GenericActive< valuetype > &rhs)
 
template<class valuetype >
bool operator!= (valuetype lhs, const GenericActive< valuetype > &rhs)
 
template<class valuetype >
bool operator== (valuetype lhs, const GenericActive< valuetype > &rhs)
 
template<class valuetype >
bool operator<= (valuetype lhs, const GenericActive< valuetype > &rhs)
 
template<class valuetype >
bool operator>= (valuetype lhs, const GenericActive< valuetype > &rhs)
 
template<class valuetype >
bool operator< (valuetype lhs, const GenericActive< valuetype > &rhs)
 
template<class valuetype >
bool operator> (valuetype lhs, const GenericActive< valuetype > &rhs)
 
template<class valuetype >
GenericActive< valuetype > exp (const GenericActive< valuetype > &)
 exponential More...
 
template<class valuetype >
GenericActive< valuetype > log (const GenericActive< valuetype > &)
 natural logarithm More...
 
template<class valuetype >
GenericActive< valuetype > log10 (const GenericActive< valuetype > &)
 10-base logarithm More...
 
template<class valuetype >
GenericActive< valuetype > sin (const GenericActive< valuetype > &)
 sine More...
 
template<class valuetype >
GenericActive< valuetype > asin (const GenericActive< valuetype > &)
 arc sine More...
 
template<class valuetype >
GenericActive< valuetype > tan (const GenericActive< valuetype > &)
 tangent More...
 
template<class valuetype >
GenericActive< valuetype > atan (const GenericActive< valuetype > &)
 arc tangent More...
 
template<class valuetype >
GenericActive< valuetype > cos (const GenericActive< valuetype > &)
 cosine More...
 
template<class valuetype >
GenericActive< valuetype > acos (const GenericActive< valuetype > &)
 arc cosine More...
 
template<class valuetype >
GenericActive< valuetype > sinh (const GenericActive< valuetype > &)
 hyperbolic sine More...
 
template<class valuetype >
GenericActive< valuetype > cosh (const GenericActive< valuetype > &)
 hyperbolic cosine More...
 
template<class valuetype >
GenericActive< valuetype > sqrt (const GenericActive< valuetype > &)
 square root More...
 
template<class valuetype >
GenericActive< valuetype > curt (const GenericActive< valuetype > &)
 cubic root More...
 
template<class valuetype >
GenericActive< valuetype > pow (const GenericActive< valuetype > &, valuetype)
 power More...
 
template<class valuetype >
GenericActive< valuetype > pow (const GenericActive< valuetype > &, const GenericActive< valuetype > &)
 power More...
 
template<class valuetype >
GenericActive< valuetype > fabs (const GenericActive< valuetype > &)
 absolute value More...
 
bool isNan (const Active &x)
 Return true if x is not a number. More...
 
bool isNan (const double &x)
 Return true if x is not a number. More...
 
bool isInfinite (const Active &x)
 Return true if x is an infinite number (greater than the maximum representable value) More...
 
bool isInfinite (const double &x)
 Return true if x is an infinite number (greater than the maximum representable value) More...
 

Variables

bool strict_ro
 
static class ActiveInitializer activeInitializer
 

Detailed Description

Contains interface to the GenericActive<valuetype> active tapeless class.

This file is part of LIBPF All rights reserved; do not distribute without permission.

Author
(C) Copyright 2004-2016 Paolo Greppi simevo s.r.l.

Macro Definition Documentation

#define ADV_I   adv[_i]
#define ADVAL_CONSTRUCTOR   , adval_(NUMBER_DIRECTIONS)
#define ADVAL_I   adval_[_i]
#define ADVAL_TYPE   std::vector < valuetype >
#define FOR_I_EQ_0_LT_ALLDIR   for (int _i = 0; _i < NUMBER_DIRECTIONS; ++_i)
#define FOR_I_EQ_0_LT_NUMDIR   for (int _i = 0; _i < numdir; ++_i)
#define non_den   0.0 /* respectively, see the documentation */
#define non_num   0.0 /* (inf_num/inf_den) and (non_num/non_den) */
#define NUMBER_DIRECTIONS   5

Typedef Documentation

typedef GenericActive<double> Active

Function Documentation

template<class valuetype >
GenericActive<valuetype> acos ( const GenericActive< valuetype > &  )

arc cosine

template<class valuetype >
GenericActive<valuetype> asin ( const GenericActive< valuetype > &  )

arc sine

template<class valuetype >
GenericActive<valuetype> atan ( const GenericActive< valuetype > &  )

arc tangent

template<class valuetype >
GenericActive<valuetype> cos ( const GenericActive< valuetype > &  )

cosine

template<class valuetype >
GenericActive<valuetype> cosh ( const GenericActive< valuetype > &  )

hyperbolic cosine

template<class valuetype >
GenericActive<valuetype> curt ( const GenericActive< valuetype > &  )

cubic root

template<class valuetype >
GenericActive<valuetype> exp ( const GenericActive< valuetype > &  )

exponential

template<class valuetype >
GenericActive<valuetype> fabs ( const GenericActive< valuetype > &  )

absolute value

bool isInfinite ( const Active x)

Return true if x is an infinite number (greater than the maximum representable value)

bool isInfinite ( const double &  x)

Return true if x is an infinite number (greater than the maximum representable value)

bool isNan ( const Active x)

Return true if x is not a number.

bool isNan ( const double &  x)

Return true if x is not a number.

template<class valuetype >
GenericActive<valuetype> log ( const GenericActive< valuetype > &  )

natural logarithm

template<class valuetype >
GenericActive<valuetype> log10 ( const GenericActive< valuetype > &  )

10-base logarithm

template<class valuetype >
valuetype makeNaN ( void  )
template<class valuetype >
bool operator!= ( valuetype  lhs,
const GenericActive< valuetype > &  rhs 
)
template<class valuetype >
GenericActive<valuetype> operator* ( valuetype  lhs,
const GenericActive< valuetype > &  rhs 
)
template<class valuetype >
GenericActive<valuetype> operator+ ( valuetype  lhs,
const GenericActive< valuetype > &  rhs 
)
template<class valuetype >
GenericActive<valuetype> operator- ( valuetype  lhs,
const GenericActive< valuetype > &  rhs 
)
template<class valuetype >
GenericActive<valuetype> operator/ ( valuetype  lhs,
const GenericActive< valuetype > &  rhs 
)
template<class valuetype >
bool operator< ( valuetype  lhs,
const GenericActive< valuetype > &  rhs 
)
template<class valuetype >
bool operator<= ( valuetype  lhs,
const GenericActive< valuetype > &  rhs 
)
template<class valuetype >
bool operator== ( valuetype  lhs,
const GenericActive< valuetype > &  rhs 
)
template<class valuetype >
bool operator> ( valuetype  lhs,
const GenericActive< valuetype > &  rhs 
)
template<class valuetype >
bool operator>= ( valuetype  lhs,
const GenericActive< valuetype > &  rhs 
)
template<class valuetype >
GenericActive<valuetype> pow ( const GenericActive< valuetype > &  ,
valuetype   
)

power

template<class valuetype >
GenericActive<valuetype> pow ( const GenericActive< valuetype > &  ,
const GenericActive< valuetype > &   
)

power

template<class valuetype >
GenericActive<valuetype> sin ( const GenericActive< valuetype > &  )

sine

template<class valuetype >
GenericActive<valuetype> sinh ( const GenericActive< valuetype > &  )

hyperbolic sine

template<class valuetype >
GenericActive<valuetype> sqrt ( const GenericActive< valuetype > &  )

square root

template<class valuetype >
GenericActive<valuetype> tan ( const GenericActive< valuetype > &  )

tangent

Variable Documentation

class ActiveInitializer activeInitializer
static
bool strict_ro