13 #include <hipipe/core/stream/generate.hpp>
15 namespace hipipe::stream {
48 template<
typename FromColumn,
typename ToColumn,
typename Prng = std::mt19937,
49 typename Dist = std::uniform_real_distribution<double>,
50 int Dim = utility::ndims<typename ToColumn::data_type>::value
51 - utility::ndims<std::result_of_t<Dist(Prng&)>>::value>
53 to_t<ToColumn> fill_to,
54 long rnddims = std::numeric_limits<long>::max(),
55 Dist dist = Dist{0, 1},
57 dim_t<Dim> d = dim_t<Dim>{})
60 using GenT = std::function<
61 utility::ndim_type_t<typename ToColumn::data_type, Dim>()>;
63 GenT fun = [dist, &prng]() {
return std::invoke(Dist{dist}, prng); };