18v1[0], v1[1], v1[2] = 1, 2, 3
34print(
"Combinations of {} and {}:".format(v1, v2))
35for i
in range(len(v3)):
36 print(
"{} * {} = {}".format(c1[i], c2[i], v3[i]))
44v4[0], v4[1], v4[2], v4[3] = 1, 2, 3, 4
54print(
"Unique triples of {}:".format(v4))
55for i
in range(len(v5)):
56 print(
"{} * {} * {} = {}".format(c3[i], c4[i], c5[i], v5[i]))
ROOT::VecOps::RVec< T > RVec
RVec< T > Take(const RVec< T > &v, const RVec< typename RVec< T >::size_type > &i)
Return elements of a vector at given indices.
RVec< RVec< std::size_t > > Combinations(const std::size_t size1, const std::size_t size2)
Return the indices that represent all combinations of the elements of two RVecs.