MCPcopy Create free account
hub / github.com/NVIDIA/cutlass / repeat

Function repeat

include/cute/algorithm/tuple_algorithms.hpp:716–727  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

714
715template <int N, class X>
716CUTE_HOST_DEVICE constexpr
717auto
718repeat(X const& x)
719{
720 if constexpr (N == 1) {
721 return x;
722 } else {
723 return detail::construct(0, x, seq<>{}, make_seq<N>{}, seq<>{});
724 }
725
726 CUTE_GCC_UNREACHABLE;
727}
728
729//
730// Make a tuple of Xs the same profile as tuple T

Callers

nothing calls this directly

Calls 1

constructFunction · 0.85

Tested by

no test coverage detected