piranha  0.10
Public Member Functions | List of all members
piranha::math::cos_impl< T, typename std::enable_if< std::is_floating_point< T >::value >::type > Struct Template Reference

Specialisation of the piranha::math::cos() functor for floating-point types. More...

#include <piranha/math.hpp>

Public Member Functions

operator() (const T &x) const
 Call operator. More...
 

Detailed Description

template<typename T>
struct piranha::math::cos_impl< T, typename std::enable_if< std::is_floating_point< T >::value >::type >

Specialisation of the piranha::math::cos() functor for floating-point types.

This specialisation is activated when T is a C++ floating-point type. The result will be computed via the standard std::cos() function.

Definition at line 458 of file math.hpp.

Member Function Documentation

◆ operator()()

template<typename T >
T piranha::math::cos_impl< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::operator() ( const T &  x) const
inline

Call operator.

The cosine will be computed via std::cos().

Parameters
xargument.
Returns
cosine of x.

Definition at line 467 of file math.hpp.


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