5template<
typename type_t>
6struct less_t :
public std::binary_function<type_t, type_t, bool> {
7 __forceinline__ __device__ __host__
bool operator()(type_t a, type_t b)
const {
12template<
typename type_t>
13struct less_equal_t :
public std::binary_function<type_t, type_t, bool> {
14 __forceinline__ __device__ __host__
bool operator()(type_t a, type_t b)
const {
19template<
typename type_t>
20struct greater_t :
public std::binary_function<type_t, type_t, bool> {
21 __forceinline__ __device__ __host__
bool operator()(type_t a, type_t b)
const {
26template<
typename type_t>
28 __forceinline__ __device__ __host__
bool operator()(type_t a, type_t b)
const {
33template<
typename type_t>
34struct equal_to_t :
public std::binary_function<type_t, type_t, bool> {
35 __forceinline__ __device__ __host__
bool operator()(type_t a, type_t b)
const {
40template<
typename type_t>
42 __forceinline__ __device__ __host__
bool operator()(type_t a, type_t b)
const {
47template<
typename type_t>
48struct plus_t :
public std::binary_function<type_t, type_t, type_t> {
49 __forceinline__ __device__ __host__ type_t operator()(type_t a, type_t b)
const {
54template<
typename type_t>
55struct minus_t :
public std::binary_function<type_t, type_t, type_t> {
56 __forceinline__ __device__ __host__ type_t operator()(type_t a, type_t b)
const {
61template<
typename type_t>
62struct multiplies_t :
public std::binary_function<type_t, type_t, type_t> {
63 __forceinline__ __device__ __host__ type_t operator()(type_t a, type_t b)
const {
68template<
typename type_t>
69struct maximum_t :
public std::binary_function<type_t, type_t, type_t> {
70 __forceinline__ __device__ __host__ type_t operator()(type_t a, type_t b)
const {
71 return (a < b) ? b : a;
75template<
typename type_t>
76struct minimum_t :
public std::binary_function<type_t, type_t, type_t> {
77 __forceinline__ __device__ __host__ type_t operator()(type_t a, type_t b)
const {
78 return (b < a) ? b : a;