NVBIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Functions
primitives_inl.h File Reference
#include <nvbio/basic/numbers.h>

Go to the source code of this file.

Classes

struct  nvbio::cuda::is_sorted_iterator< Iterator1, Iterator2 >
 
struct  nvbio::cuda::is_segment_sorted_iterator< Iterator1, Iterator2, Headflags >
 

Namespaces

 nvbio
 Define a vector_view POD type and plain_view() for std::vector.
 
 nvbio::cuda
 

Functions

template<typename VectorType >
void nvbio::cuda::alloc_temp_storage (VectorType &vec, const uint64 size)
 
template<typename PredicateIterator >
__global__ void nvbio::cuda::any_kernel (const uint32 n, const PredicateIterator pred, uint32 *r)
 
template<typename PredicateIterator >
__global__ void nvbio::cuda::all_kernel (const uint32 n, const PredicateIterator pred, uint32 *r)
 
template<typename PredicateIterator >
bool nvbio::cuda::any (const uint32 n, const PredicateIterator pred)
 
template<typename PredicateIterator >
bool nvbio::cuda::all (const uint32 n, const PredicateIterator pred)
 
template<typename Iterator >
bool nvbio::cuda::is_sorted (const uint32 n, const Iterator values)
 
template<typename Iterator , typename Headflags >
bool nvbio::cuda::is_segment_sorted (const uint32 n, const Iterator values, const Headflags flags)
 
template<typename InputIterator , typename BinaryOp >
std::iterator_traits
< InputIterator >::value_type 
nvbio::cuda::reduce (const uint32 n, InputIterator d_in, BinaryOp op, thrust::device_vector< uint8 > &d_temp_storage)
 
template<typename InputIterator , typename OutputIterator , typename BinaryOp >
void nvbio::cuda::inclusive_scan (const uint32 n, InputIterator d_in, OutputIterator d_out, BinaryOp op, thrust::device_vector< uint8 > &d_temp_storage)
 
template<typename InputIterator , typename OutputIterator , typename BinaryOp , typename Identity >
void nvbio::cuda::exclusive_scan (const uint32 n, InputIterator d_in, OutputIterator d_out, BinaryOp op, Identity identity, thrust::device_vector< uint8 > &d_temp_storage)
 
template<typename InputIterator , typename FlagsIterator , typename OutputIterator >
uint32 nvbio::cuda::copy_flagged (const uint32 n, InputIterator d_in, FlagsIterator d_flags, OutputIterator d_out, thrust::device_vector< uint8 > &d_temp_storage)
 
template<typename InputIterator , typename OutputIterator , typename Predicate >
uint32 nvbio::cuda::copy_if (const uint32 n, InputIterator d_in, OutputIterator d_out, const Predicate pred, thrust::device_vector< uint8 > &d_temp_storage)
 
template<typename InputIterator , typename OutputIterator , typename CountIterator >
uint32 nvbio::cuda::runlength_encode (const uint32 n, InputIterator d_in, OutputIterator d_out, CountIterator d_counts, thrust::device_vector< uint8 > &d_temp_storage)
 
template<typename KeyIterator , typename ValueIterator , typename OutputKeyIterator , typename OutputValueIterator , typename ReductionOp >
uint32 nvbio::cuda::reduce_by_key (const uint32 n, KeyIterator d_keys_in, ValueIterator d_values_in, OutputKeyIterator d_keys_out, OutputValueIterator d_values_out, ReductionOp reduction_op, thrust::device_vector< uint8 > &d_temp_storage)