|
Fermat
|
A functor to select between two output values based on equality to a given constant
#include <functors.h>
Public Types | |
| typedef unary_function_tag | function_tag |
| typedef T | argument_type |
| typedef R | result_type |
Public Methods | |
| CUGAR_HOST_DEVICE | if_constant (const T c, const R r0, const R r1) |
| CUGAR_HOST_DEVICE R | operator() (const T &v) const |
|
inline |
constructor
| c | constant value |
| r0 | true output value |
| r1 | false output value |
1.8.13