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

Function RandomValuesWithoutMinMax

bench/BenchMinMaxLoc.hpp:27–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25template<typename VT, typename R = Randomizer<VT>, typename RE = typename R::RE, typename UD = typename R::UD,
26 class = nvcv::cuda::Require<nvcv::cuda::NumComponents<VT> == 0 && std::is_integral_v<VT>>>
27inline auto RandomValuesWithoutMinMax(VT min = nvcv::cuda::TypeTraits<VT>::min,
28 VT max = nvcv::cuda::TypeTraits<VT>::max, RE rng = DefaultGenerator())
29{
30 return R{UD(min + 1, max - 1), rng};
31}
32
33template<typename VT, typename R = Randomizer<VT>, typename RE = typename R::RE>
34inline void RandomMinMax(std::vector<uint8_t> &srcVec, const long3 &shape, const long3 &strides, long locs,

Callers

nothing calls this directly

Calls 1

DefaultGeneratorFunction · 0.85

Tested by

no test coverage detected