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

Function lex_less_impl

include/cute/int_tuple.hpp:755–768  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

753
754template <size_t I, class TupleA, class TupleB>
755CUTE_HOST_DEVICE constexpr
756auto
757lex_less_impl(TupleA const& a, TupleB const& b)
758{
759 if constexpr (I == tuple_size<TupleB>::value) {
760 return cute::false_type{}; // Terminal: TupleB is exhausted
761 } else if constexpr (I == tuple_size<TupleA>::value) {
762 return cute::true_type{}; // Terminal: TupleA is exhausted, TupleB is not exhausted
763 } else {
764 return lex_less(get<I>(a), get<I>(b)) || (get<I>(a) == get<I>(b) && lex_less_impl<I+1>(a,b));
765 }
766
767 CUTE_GCC_UNREACHABLE;
768}
769
770template <size_t I, class TupleA, class TupleB>
771CUTE_HOST_DEVICE constexpr

Callers

nothing calls this directly

Calls 1

lex_lessFunction · 0.85

Tested by

no test coverage detected