mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-05-26 16:04:58 +00:00
Merge commit 'fa39c4e7987acb39d3bb1f3c74add5acda44e164' into develop
This commit is contained in:
@@ -85,6 +85,20 @@ struct FillUniformDistributionIntegerValue
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief A functor for filling a container with a monotonically increasing or decreasing sequence.
|
||||
*
|
||||
* FillMonotonicSeq generates a sequence of values starting from an initial value
|
||||
* and incrementing by a fixed step for each subsequent element.
|
||||
*
|
||||
* @tparam T The numeric type of the sequence elements.
|
||||
*
|
||||
* Example usage:
|
||||
* ```
|
||||
* std::vector<int> v(5);
|
||||
* FillMonotonicSeq<int>{10, 2}(v); // Fills v with {10, 12, 14, 16, 18}
|
||||
* ```
|
||||
*/
|
||||
template <typename T>
|
||||
struct FillMonotonicSeq
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user