NVBIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
nvbio::mergesort Namespace Reference

Functions

template<typename Iterator , typename Compare >
NVBIO_HOST_DEVICE void merge (Iterator A, uint32 int_left, uint32 int_right, uint32 int_end, Iterator B, const Compare cmp)
 

Function Documentation

template<typename Iterator , typename Compare >
NVBIO_HOST_DEVICE void nvbio::mergesort::merge ( Iterator  A,
uint32  int_left,
uint32  int_right,
uint32  int_end,
Iterator  B,
const Compare  cmp 
)

merge two contiguous sorted sequences into a single sorted output sequence. NOTE: the output buffer should not overlap the input buffer.

Parameters
Ainput buffer
int_leftbeginning of the first interval
int_rightbeginning of the second interval
int_endend of the second interval
Boutput buffer

Definition at line 48 of file merge_sort.h.