SimiLie
Loading...
Searching...
No Matches
select_from_type_seq.hpp
1
// SPDX-FileCopyrightText: 2024 Baptiste Legouix
2
// SPDX-License-Identifier: MIT
3
4
#pragma once
5
6
#include <ddc/ddc.hpp>
7
8
namespace
sil
{
9
10
namespace
misc {
11
12
namespace
detail {
13
14
template
<
class
Seq>
15
struct
SelectFromTypeSeq;
16
17
template
<
class
... DDim>
18
struct
SelectFromTypeSeq<ddc::detail::TypeSeq<DDim...>>
19
{
20
template
<
class
T>
21
static
KOKKOS_FUNCTION
auto
run(T t)
22
{
23
return
ddc::select<DDim...>(t);
24
}
25
};
26
27
}
// namespace detail
28
29
template
<
class
Seq,
class
T>
30
KOKKOS_FUNCTION
auto
select_from_type_seq
(T t)
31
{
32
return
detail::SelectFromTypeSeq<Seq>::run(t);
33
}
34
35
}
// namespace misc
36
37
}
// namespace sil
sil::misc::select_from_type_seq
KOKKOS_FUNCTION auto select_from_type_seq(T t)
Definition
select_from_type_seq.hpp:30
sil
The top-level namespace of SimiLie.
Definition
csr.hpp:14
include
similie
misc
select_from_type_seq.hpp
Generated by
1.12.0