23 #ifndef vtkPistonMinMax_h
24 #define vtkPistonMinMax_h
26 #include <thrust/device_vector.h>
27 #include <thrust/host_vector.h>
28 #include <thrust/transform_reduce.h>
29 #include <thrust/functional.h>
30 #include <thrust/extrema.h>
31 #include <thrust/random.h>
51 :
public thrust::unary_function< T, minmax_pair<T> >
69 :
public thrust::binary_function< minmax_pair<T>, minmax_pair<T>, minmax_pair<T> >
93 data->begin(), data->end(), unary_op, init, binary_op);
99 #endif // vtkPistonMinMax_h
minmax_pair< T > find_min_max(thrust::device_vector< T > *data)
__host__ __device__ minmax_pair< T > operator()(const minmax_pair< T > &x, const minmax_pair< T > &y) const
__host__ __device__ minmax_pair< T > operator()(const T &x) const