MCPcopy Create free account
hub / github.com/CVCUDA/CV-CUDA / RandomValues

Function RandomValues

bench/BenchUtils.hpp:221–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219template<typename VT, typename R = Randomizer<VT>, typename BT = typename R::BT, typename RE = typename R::RE,
220 typename UD = typename R::UD>
221inline auto RandomValues(BT min = std::is_integral_v<BT> ? nvcv::cuda::TypeTraits<BT>::min : -1,
222 BT max = std::is_integral_v<BT> ? nvcv::cuda::TypeTraits<BT>::max : +1,
223 RE rng = DefaultGenerator())
224{
225 return R{UD(min, max), rng};
226}
227
228template<typename VT, typename ST, class VG>
229inline void FillBuffer(std::vector<uint8_t> &vec, const ST &shape, const ST &strides, VG valuesGenerator)

Callers

nothing calls this directly

Calls 1

DefaultGeneratorFunction · 0.85

Tested by

no test coverage detected