Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
composable_kernel_ROCM
Commits
5a5464b1
Commit
5a5464b1
authored
Apr 29, 2024
by
Po Yen Chen
Browse files
Add is_number<> type trait
parent
764164b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
include/ck_tile/core/numeric/integral_constant.hpp
include/ck_tile/core/numeric/integral_constant.hpp
+13
-0
No files found.
include/ck_tile/core/numeric/integral_constant.hpp
View file @
5a5464b1
...
...
@@ -80,4 +80,17 @@ CK_TILE_BINARY_OP(<=)
#undef CK_TILE_LEFT_UNARY_OP
#undef CK_TILE_BINARY_OP
template
<
typename
T
>
struct
is_number
:
bool_constant
<
false
>
{
};
template
<
index_t
v
>
struct
is_number
<
number
<
v
>>
:
bool_constant
<
true
>
{
};
template
<
typename
T
>
inline
constexpr
bool
is_number_v
=
is_number
<
T
>::
value
;
}
// namespace ck_tile
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment