MCPcopy Create free account
hub / github.com/KnowingNothing/MatmulTutorial / C

Class C

include/common.h:94–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92// Short name for fast compilation
93template <auto v>
94struct C {
95 using type = C<v>;
96 static constexpr auto value = v;
97 using value_type = decltype(v);
98 HOST_DEVICE constexpr operator value_type() const noexcept { return value; }
99 HOST_DEVICE constexpr value_type operator()() const noexcept { return value; }
100};
101
102template <class T, T v>
103using constant = C<v>;

Callers 1

common.hFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected