Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request #351 from allisonvacanti/histo_docs
Browse files Browse the repository at this point in the history
Update histogram documentation.
  • Loading branch information
alliepiper committed Aug 16, 2021
2 parents 9fffdf3 + e8539fa commit 571aab9
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions cub/device/device_histogram.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ struct DeviceHistogram
* // Declare, allocate, and initialize device-accessible pointers for input samples and
* // output histogram
* int num_samples; // e.g., 10
* float* d_samples; // e.g., [2.2, 6.0, 7.1, 2.9, 3.5, 0.3, 2.9, 2.0, 6.1, 999.5]
* int* d_histogram; // e.g., [ -, -, -, -, -, -, -, -]
* float* d_samples; // e.g., [2.2, 6.1, 7.1, 2.9, 3.5, 0.3, 2.9, 2.1, 6.1, 999.5]
* int* d_histogram; // e.g., [ -, -, -, -, -, -]
* int num_levels; // e.g., 7 (seven level boundaries for six bins)
* float lower_level; // e.g., 0.0 (lower sample value boundary of lowest bin)
* float upper_level; // e.g., 12.0 (upper sample value boundary of upper bin)
Expand All @@ -102,7 +102,7 @@ struct DeviceHistogram
* cub::DeviceHistogram::HistogramEven(d_temp_storage, temp_storage_bytes,
* d_samples, d_histogram, num_levels, lower_level, upper_level, num_samples);
*
* // d_histogram <-- [1, 0, 5, 0, 3, 0, 0, 0];
* // d_histogram <-- [1, 5, 0, 3, 0, 0];
*
* \endcode
*
Expand Down Expand Up @@ -178,9 +178,9 @@ struct DeviceHistogram
* int num_row_samples; // e.g., 5
* int num_rows; // e.g., 2;
* size_t row_stride_bytes; // e.g., 7 * sizeof(float)
* float* d_samples; // e.g., [2.2, 6.0, 7.1, 2.9, 3.5, -, -,
* // 0.3, 2.9, 2.0, 6.1, 999.5, -, -]
* int* d_histogram; // e.g., [ -, -, -, -, -, -, -, -]
* float* d_samples; // e.g., [2.2, 6.1, 7.1, 2.9, 3.5, -, -,
* // 0.3, 2.9, 2.1, 6.1, 999.5, -, -]
* int* d_histogram; // e.g., [ -, -, -, -, -, -]
* int num_levels; // e.g., 7 (seven level boundaries for six bins)
* float lower_level; // e.g., 0.0 (lower sample value boundary of lowest bin)
* float upper_level; // e.g., 12.0 (upper sample value boundary of upper bin)
Expand All @@ -201,7 +201,7 @@ struct DeviceHistogram
* d_samples, d_histogram, num_levels, lower_level, upper_level,
* num_row_samples, num_rows, row_stride_bytes);
*
* // d_histogram <-- [1, 0, 5, 0, 3, 0, 0, 0];
* // d_histogram <-- [1, 5, 0, 3, 0, 0];
*
* \endcode
*
Expand Down Expand Up @@ -488,7 +488,7 @@ struct DeviceHistogram
* // output histogram
* int num_samples; // e.g., 10
* float* d_samples; // e.g., [2.2, 6.0, 7.1, 2.9, 3.5, 0.3, 2.9, 2.0, 6.1, 999.5]
* int* d_histogram; // e.g., [ -, -, -, -, -, -, -, -]
* int* d_histogram; // e.g., [ -, -, -, -, -, -]
* int num_levels // e.g., 7 (seven level boundaries for six bins)
* float* d_levels; // e.g., [0.0, 2.0, 4.0, 6.0, 8.0, 12.0, 16.0]
* ...
Expand All @@ -506,7 +506,7 @@ struct DeviceHistogram
* cub::DeviceHistogram::HistogramRange(d_temp_storage, temp_storage_bytes,
* d_samples, d_histogram, num_levels, d_levels, num_samples);
*
* // d_histogram <-- [1, 0, 5, 0, 3, 0, 0, 0];
* // d_histogram <-- [1, 5, 0, 3, 0, 0];
*
* \endcode
*
Expand Down Expand Up @@ -581,7 +581,7 @@ struct DeviceHistogram
* int row_stride_bytes; // e.g., 7 * sizeof(float)
* float* d_samples; // e.g., [2.2, 6.0, 7.1, 2.9, 3.5, -, -,
* // 0.3, 2.9, 2.0, 6.1, 999.5, -, -]
* int* d_histogram; // e.g., [ , , , , , , , ]
* int* d_histogram; // e.g., [ -, -, -, -, -, -]
* int num_levels // e.g., 7 (seven level boundaries for six bins)
* float *d_levels; // e.g., [0.0, 2.0, 4.0, 6.0, 8.0, 12.0, 16.0]
* ...
Expand All @@ -601,7 +601,7 @@ struct DeviceHistogram
* d_samples, d_histogram, num_levels, d_levels,
* num_row_samples, num_rows, row_stride_bytes);
*
* // d_histogram <-- [1, 0, 5, 0, 3, 0, 0, 0];
* // d_histogram <-- [1, 5, 0, 3, 0, 0];
*
* \endcode
*
Expand Down

0 comments on commit 571aab9

Please sign in to comment.