Bolt  1.3
C++ template library with support for OpenCL
Modules
Transformations

Modules

 AMP-filling
 
 AMP-for_each
 
 AMP-generate
 
 AMP-remove
 
 AMP-replace
 
 AMP-transform
 
 AMP-unique
 
 CL-filling
 
 CL-generate
 
 CL-transform
 

Detailed Description

Fill fills a range with values passed in the function.

Iterates over a range and applies function specified on each element in range.

generate assigns to each element of a sequence the value returned by a generator.

remove removes from the range [first, last) all elements that are equal to value. remove_if removes from the range [first, last) every element x such that pred(x) is true.

replace replaces every element in the range [first, last) equal to old_value with new_value. replace_if replaces every element in the range [first, last) that satisfies specified condition with new_value.

transform applies a specific function object to each element pair in the specified input ranges, and writes the result into the specified output range. For common code between the host and device, one can take a look at the TypeName implementations. See Bolt Tools for Split-Source for a detailed description.

unique For each group of consecutive elements in the range [first, last) with the same value, unique removes all but the first element of the group. unique_copy copies elements from the range [first, last) to a range beginning with output, except that in a consecutive group of duplicate elements only the first one is copied.

transform applies a specific function object to each element pair in the specified input ranges, and writes the result into the specified output range. For common code between the host and device, one can take a look at the ClCode and TypeName implementations. See Bolt Tools for Split-Source for a detailed description.