STK++ 0.9.13
|
Template functor which compute safely the inverse of a number. More...
#include <STK_Functors.h>
Public Types | |
enum | { NbParam_ = 1 } |
typedef Type | result_type |
typedef hidden::RemoveConst< Type >::Type | param1_type |
Public Member Functions | |
SafeInverseOp (Type const &tol=Arithmetic< Type >::epsilon()) | |
SafeInverseOp (SafeInverseOp const &value) | |
result_type | operator() (param1_type const &a) const |
Private Attributes | |
Type const | tol_ |
Template functor which compute safely the inverse of a number.
If the number is 0, return 0.
Definition at line 811 of file STK_Functors.h.
typedef hidden::RemoveConst<Type>::Type STK::SafeInverseOp< Type >::param1_type |
Definition at line 815 of file STK_Functors.h.
typedef Type STK::SafeInverseOp< Type >::result_type |
Definition at line 814 of file STK_Functors.h.
|
inline |
Definition at line 817 of file STK_Functors.h.
|
inline |
Definition at line 818 of file STK_Functors.h.
|
inline |
|
private |
Definition at line 823 of file STK_Functors.h.
Referenced by STK::SafeInverseOp< Type >::operator()().