Automatic Differentiation
 
Loading...
Searching...
No Matches
mergesort.hpp File Reference

Go to the source code of this file.

Classes

struct  stan::math::opencl_kernels::sort_asc< Scalar, typename >
 struct containing sort_asc kernels, grouped by scalar type. More...
 
struct  stan::math::opencl_kernels::sort_asc< double, T >
 
struct  stan::math::opencl_kernels::sort_asc< int, T >
 
struct  stan::math::opencl_kernels::sort_desc< Scalar, typename >
 struct containing sort_desc kernels, grouped by scalar type. More...
 
struct  stan::math::opencl_kernels::sort_desc< double, T >
 
struct  stan::math::opencl_kernels::sort_desc< int, T >
 

Namespaces

namespace  stan
 The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation from C or the boost::math::lgamma implementation.
 
namespace  stan::math
 Matrices and templated mathematical functions.
 
namespace  stan::math::opencl_kernels
 

Functions

void stan::math::opencl_kernels::merge (__global SCAL *A, __global SCAL *B, __global SCAL *res, int A_size, int B_size)
 Merges two sorted runs into a single sorted run of combined length.
 
int stan::math::opencl_kernels::binary_search (__global SCAL *input, int start, int end, SCAL value)
 Searches for the index of the element that is larger than or equal to given value in given range.
 
__kernel void stan::math::opencl_kernels::merge_step (__global SCAL *output, __global SCAL *input, int run_len, int size, int tasks)
 Merges sorted runs into longer sorted runs.