yat  0.13.2pre
Public Member Functions | List of all members
theplu::yat::utility::Log< T > Class Template Reference

#include <yat/utility/stl_utility.h>

Inheritance diagram for theplu::yat::utility::Log< T >:

Public Member Functions

 Log (void)
 
 Log (double base)
 
operator() (T x) const
 

Detailed Description

template<typename T>
class theplu::yat::utility::Log< T >

Functor class to take logarithm

T should be either float, double, or long double

Since
New in yat 0.5

Constructor & Destructor Documentation

template<typename T >
theplu::yat::utility::Log< T >::Log ( void  )
inline

Default constructor using natural base $ e $

template<typename T >
theplu::yat::utility::Log< T >::Log ( double  base)
inlineexplicit
Parameters
baseTaking logarithm in which base, e.g. 2 or 10.

Member Function Documentation

template<typename T >
T theplu::yat::utility::Log< T >::operator() ( x) const
inline
Returns
logarithm

The documentation for this class was generated from the following file:

Generated on Wed Jan 4 2017 02:23:09 for yat by  doxygen 1.8.5