sqrt_functor< X >
Description
Is used to implement glas::sqrt(x).
The added value of the sqrt_functor
is that it can be extended
to any value-type that one might want to use in glas.
Example
Definition
Defined in sqrt.hpp
Template parameters
Parameter | Description | Default |
X | type of argument of the sqrt_square(a) function | |
Model of
UnaryFunction
Type requirements
X can be
- built-in float type or std::complex type,
- or any type for which sqrt_functor is specialized.
Public base classes
Members
Member | Where defined | Comment |
sqrt_functor<X>::result_type sqrt_functor<X>operator()(X const& a) const |
UnaryFunction | a |